1
0
mirror of https://github.com/open-simh/simh.git synced 2026-03-06 19:32:04 +00:00

VIDEO: Fix coverity identified memory allocation failure error check

This commit is contained in:
Mark Pizzolato
2019-07-05 09:59:08 -07:00
parent 9e71982249
commit 24ed486222

View File

@@ -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)