Skip to content
Snippets Groups Projects
Commit cf9dab76 authored by rswindell's avatar rswindell
Browse files

iniPopKey() will now get/remove keys with blank values.

parent 9f9a7ac9
No related branches found
No related tags found
No related merge requests found
......@@ -728,9 +728,14 @@ char* iniGetString(str_list_t list, const char* section, const char* key, const
char* iniPopKey(str_list_t* list, const char* section, const char* key, char* value)
{
size_t i=get_value(*list, section, key, value);
size_t i;
if(list==NULL)
return NULL;
i=get_value(*list, section, key, value);
if(*value==0)
if(list[i]==NULL)
return NULL;
strListDelete(list,i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment