[client] egl: fix null pointer access when no preset is set

This commit is contained in:
Geoffrey McRae 2022-01-26 16:04:15 +11:00
parent aa426d13a7
commit c7389285f9

View file

@ -138,7 +138,7 @@ static void loadPresetList(struct EGL_PostProcess * this)
}
stringlist_push(this->presets, name);
if (strcmp(preset, name) == 0)
if (preset && strcmp(preset, name) == 0)
presetValid = true;
}
closedir(dir);