From 813e75e14d54618718fac85c7c62b2afed434420 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 16 Apr 2015 22:04:38 +0200 Subject: [PATCH] Fixed NULL dereference. --- winpr/libwinpr/utils/ini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winpr/libwinpr/utils/ini.c b/winpr/libwinpr/utils/ini.c index b7dd357ca..f46e41d7b 100644 --- a/winpr/libwinpr/utils/ini.c +++ b/winpr/libwinpr/utils/ini.c @@ -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]; } }