From c7389285f9b393fa46be4c993021e8cca88106de Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 26 Jan 2022 16:04:15 +1100 Subject: [PATCH] [client] egl: fix null pointer access when no preset is set --- client/renderers/EGL/postprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/renderers/EGL/postprocess.c b/client/renderers/EGL/postprocess.c index 5a950677..a26e607c 100644 --- a/client/renderers/EGL/postprocess.c +++ b/client/renderers/EGL/postprocess.c @@ -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);