Commit 87b2df6d authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

utils: go on to parse the line number even if the column number is bad

This fixes https://savannah.gnu.org/bugs/?49933.
parent c24caf5f
Showing with 3 additions and 3 deletions
+3 -3
......@@ -124,16 +124,16 @@ bool parse_line_column(const char *str, ssize_t *line, ssize_t *column)
if (comma == NULL)
return parse_num(str, line);
if (!parse_num(comma + 1, column))
return FALSE;
retval = parse_num(comma + 1, column);
if (comma == str)
return TRUE;
return retval;
firstpart = mallocstrcpy(NULL, str);
firstpart[comma - str] = '\0';
retval = parse_num(firstpart, line);
free(firstpart);
return retval;
......
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