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

This fixes https://savannah.gnu.org/bugs/?49933.
master
Benno Schulenberg 2016-12-26 11:45:38 +01:00
parent c24caf5fb8
commit 87b2df6dea
1 changed files with 3 additions and 3 deletions

View File

@ -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;