From 746214d5aac991218cb43441bdb99968f3e303bd Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 8 Jun 2005 21:16:14 +0000 Subject: [PATCH] make parse_line_column() consistent with the color regex-parsing code and go back to returning an error on strings like "3," git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2617 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/utils.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils.c b/src/utils.c index 25f3a4b7..a2b7f756 100644 --- a/src/utils.c +++ b/src/utils.c @@ -118,9 +118,7 @@ bool parse_line_column(const char *str, int *line, ssize_t *column) comma = strchr(str, ','); if (comma != NULL && column != NULL) { - const char *str_line = str + (comma - str + 1); - - if (str_line[0] != '\0' && !parse_num(str_line, column)) + if (!parse_num(str + (comma - str + 1), column)) retval = FALSE; } -- 2.39.5