mirror of
https://github.com/simh/simh.git
synced 2026-02-26 08:44:38 +00:00
VIDEO: Fix coverity identified memory allocation failure error check
This commit is contained in:
@@ -2159,7 +2159,7 @@ if (!vid_active) {
|
||||
return SCPE_UDIS | SCPE_NOMESSAGE;
|
||||
}
|
||||
fullname = (char *)malloc (strlen(filename) + 5);
|
||||
if (!filename)
|
||||
if (!fullname)
|
||||
return SCPE_MEM;
|
||||
#if SDL_MAJOR_VERSION == 1
|
||||
#if defined(HAVE_LIBPNG)
|
||||
|
||||
Reference in New Issue
Block a user