summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tr.c b/src/tr.c
index da9b2f381..7005ae331 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -2033,7 +2033,7 @@ construct in string1 must be aligned with a corresponding construct\n\
else
{
/* The following should have been checked by validate... */
- if (c2 == -1)
+ if (c1 == -1 || c2 == -1)
break;
xlate[c1] = c2;
}