mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Fix potential null pointer dereferencing
git-svn-id: https://svn.eduke32.com/eduke32@7004 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e449408b57
commit
d5381e701f
1 changed files with 1 additions and 1 deletions
|
@ -6504,7 +6504,7 @@ int app_main(int argc, char const * const * argv)
|
|||
char *const setupFileName = Xstrdup(g_setupFileName);
|
||||
char *const p = strtok(setupFileName, ".");
|
||||
|
||||
if (!Bstrcmp(g_setupFileName, SETUPFILENAME))
|
||||
if (!p || !Bstrcmp(g_setupFileName, SETUPFILENAME))
|
||||
Bsprintf(tempbuf, "settings.cfg");
|
||||
else
|
||||
Bsprintf(tempbuf, "%s_settings.cfg", p);
|
||||
|
|
Loading…
Reference in a new issue