VIDEO: Fix coverity identified memory allocation failure error check
This commit is contained in:
parent
9e71982249
commit
24ed486222
1 changed files with 1 additions and 1 deletions
|
@ -2159,7 +2159,7 @@ if (!vid_active) {
|
||||||
return SCPE_UDIS | SCPE_NOMESSAGE;
|
return SCPE_UDIS | SCPE_NOMESSAGE;
|
||||||
}
|
}
|
||||||
fullname = (char *)malloc (strlen(filename) + 5);
|
fullname = (char *)malloc (strlen(filename) + 5);
|
||||||
if (!filename)
|
if (!fullname)
|
||||||
return SCPE_MEM;
|
return SCPE_MEM;
|
||||||
#if SDL_MAJOR_VERSION == 1
|
#if SDL_MAJOR_VERSION == 1
|
||||||
#if defined(HAVE_LIBPNG)
|
#if defined(HAVE_LIBPNG)
|
||||||
|
|
Loading…
Add table
Reference in a new issue