command.c - Prevent explicit NULL dereferenced

This commit is contained in:
twinaphex 2016-06-05 19:08:19 +02:00
parent f77f743403
commit b110b08b25

View File

@ -1852,7 +1852,7 @@ bool command_event(enum event_command cmd, void *data)
if (runloop_ctl(RUNLOOP_CTL_GET_WINDOWED_SCALE, &window_scale))
{
if (*window_scale == 0)
if (!window_scale || *window_scale == 0)
return false;
settings->video.scale = *window_scale;