diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 31a3776bb..e2df56a33 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -2035,6 +2035,9 @@ void I_StartupGraphics(void) { word = strtok(line, " \n"); + if (!word) + continue; + if (rendermode == render_none) { if (fasticmp(word, "software"))