Fixed NULL dereference.
This commit is contained in:
parent
60de56e1bb
commit
813e75e14d
@ -377,7 +377,7 @@ int IniFile_Load(wIniFile* ini)
|
||||
|
||||
IniFile_AddKey(ini, section, name, value);
|
||||
key = NULL;
|
||||
if (section->keys)
|
||||
if (section && section->keys)
|
||||
key = section->keys[section->nKeys - 1];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user