Skip to content

Commit

Permalink
fix INI quoted string support
Browse files Browse the repository at this point in the history
operate on the unquote result
  • Loading branch information
nmschulte committed Jun 3, 2024
1 parent c6a5cbc commit 84162e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/inih/ini.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@ int ini_parse_stream(ini_reader reader, void* stream, ini_handler handler,
if (*end)
*end = '\0';
#endif
value = lskip(value);
rstrip(value);
unquote(value);
value = unquote(rstrip(lskip(value)));

/* Valid name[=:]value pair found, call handler */
strncpy0(prev_name, name, sizeof(prev_name));
Expand Down

0 comments on commit 84162e2

Please sign in to comment.