(read_input_file): Make sure that \n is not alone on the line before
authordrepper <drepper>
Sat, 5 Apr 2003 21:41:42 +0000 (21:41 +0000)
committerdrepper <drepper>
Sat, 5 Apr 2003 21:41:42 +0000 (21:41 +0000)
testing for continuation.

catgets/gencat.c

index 175f1ff..18bf3bb 100644 (file)
@@ -333,7 +333,7 @@ read_input_file (struct catalog *current, const char *fname)
              /* There might be more than one backslash at the end of
                 the line.  Only if there is an odd number of them is
                 the line continued.  */
-             if (buf[act_len - 1] == '\\')
+             if (act_len > 0 && buf[act_len - 1] == '\\')
                {
                  int temp_act_len = act_len;