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

Fix mistaken reverse logic in previous commit: would write "(null)" instead

of default style elements.
parent 499ebd95
No related branches found
No related tags found
No related merge requests found
...@@ -544,11 +544,11 @@ static char* ini_set_string(str_list_t* list, const char* section, const char* k ...@@ -544,11 +544,11 @@ static char* ini_set_string(str_list_t* list, const char* section, const char* k
if(key==NULL) if(key==NULL)
return(NULL); return(NULL);
if(style->key_prefix==NULL) if(style->key_prefix != NULL)
key_prefix = style->key_prefix; key_prefix = style->key_prefix;
if(style->value_separator==NULL) if(style->value_separator != NULL)
value_separator = style->value_separator; value_separator = style->value_separator;
if(style->literal_separator==NULL) if(style->literal_separator != NULL)
literal_separator = style->literal_separator; literal_separator = style->literal_separator;
if(value==NULL) if(value==NULL)
value=""; value="";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment