diff --git a/sim_video.c b/sim_video.c index d1475fb9..fe4e72f9 100644 --- a/sim_video.c +++ b/sim_video.c @@ -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)