aboutsummaryrefslogtreecommitdiff
path: root/catgets/gencat.c
diff options
context:
space:
mode:
Diffstat (limited to 'catgets/gencat.c')
-rw-r--r--catgets/gencat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/catgets/gencat.c b/catgets/gencat.c
index 175f1ffd09..18bf3bbb7f 100644
--- a/catgets/gencat.c
+++ b/catgets/gencat.c
@@ -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;