Skip to content

Commit

Permalink
Allow values with whitespace delimited tokens
Browse files Browse the repository at this point in the history
Change-Id: I9dc973c585bb1b74b0b83c63c509949f9127bff0
  • Loading branch information
vinaykul authored and michellew-vmware committed May 18, 2016
1 parent bfba53c commit 4897f34
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/iniparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,16 +813,16 @@ ini_cfg_parse_key_value(
err = EBADMSG;
bail_on_error(err);
}
while (pszCursor && *pszCursor && !isspace((int)*pszCursor))
while (pszCursor && *pszCursor)
{
if (*pszCursor == '\n')
{
pszCursor = NULL;
break;
}
pszCursor++;
len_value++;
}
// skip whitespace
while (pszCursor && *pszCursor && isspace((int)*pszCursor))
{
pszCursor++;
}
if ((pszCursor && *pszCursor) || !len_key || !len_value)
{
err = EBADMSG;
Expand Down

0 comments on commit 4897f34

Please sign in to comment.