Commit 235a527e authored by Claes Sjofors's avatar Claes Sjofors

Bugfix in dcli parser, nullstrings was ignored

parent bda4792d
...@@ -161,7 +161,7 @@ int dcli_parse( const char *string, ...@@ -161,7 +161,7 @@ int dcli_parse( const char *string,
{ {
parsechar_found = 1; parsechar_found = 1;
/* Next token */ /* Next token */
if ( col > 0 || nullstr) if ( col > 0 || nullstr || (col == 0 && *char_ptr == ','))
{ {
*(outstr + row * max_cols + col) = '\0'; *(outstr + row * max_cols + col) = '\0';
row++; row++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment