Fixed NULL dereference.

This commit is contained in:
Armin Novak 2015-04-16 22:04:38 +02:00
parent 60de56e1bb
commit 813e75e14d

View File

@ -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];
}
}