mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[client] egl: fix null pointer access when no preset is set
This commit is contained in:
parent
aa426d13a7
commit
c7389285f9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user