Skip to content
Snippets Groups Projects
Commit 902e7a51 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix the root root cause of TypeError: obj is not an object

iniGetNamedStringList() was returning NULL when attempting to get the list of keys in the "root" (unnamed) section and the file is actually empty/blank. If there were *any* characters in the file, it would return an empty list (not NULL). Now, always return the empty list, even when the file is blank.
parent 0ff5007f
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1228 passed
......@@ -1301,7 +1301,7 @@ iniGetNamedStringList(str_list_t list, const char* section)
return(NULL);
i=find_section(list,section);
if(list[i]==NULL)
if(section!=ROOT_SECTION && list[i]==NULL)
return(NULL);
/* New behavior, if section exists but is empty, return single element array (terminator only) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment