mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +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);
|
stringlist_push(this->presets, name);
|
||||||
|
|
||||||
if (strcmp(preset, name) == 0)
|
if (preset && strcmp(preset, name) == 0)
|
||||||
presetValid = true;
|
presetValid = true;
|
||||||
}
|
}
|
||||||
closedir(dir);
|
closedir(dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user