mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[client] egl: fix null pointer access when no preset is set
This commit is contained in:
parent
aa426d13a7
commit
c7389285f9
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue