From 68d2450a7acb39f86e00008a92407529f98ed134 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Wed, 21 Nov 2007 08:08:37 +0000 Subject: [PATCH] Make iniGetSection() return an empty list when the passed list is NULL --- src/xpdev/ini_file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xpdev/ini_file.c b/src/xpdev/ini_file.c index 1265994e20..7defaa5e96 100644 --- a/src/xpdev/ini_file.c +++ b/src/xpdev/ini_file.c @@ -299,6 +299,8 @@ str_list_t iniGetSection(str_list_t list, const char *section) str_list_t retval=strListInit(); char *p; + if(list==NULL) + return(retval); if(section==ROOT_SECTION) i=0; else -- GitLab