summary refs log tree commit diff
path: root/locale/programs/stringtrans.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/stringtrans.c')
-rw-r--r--locale/programs/stringtrans.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/locale/programs/stringtrans.c b/locale/programs/stringtrans.c
index b810129678..873b61b5de 100644
--- a/locale/programs/stringtrans.c
+++ b/locale/programs/stringtrans.c
@@ -78,11 +78,8 @@ translate_string (char *str, struct charset_t *charset)
 
       tp = &str[1];
       while (tp[0] != '\0' && tp[0] != '>')
-	if (tp[0] == '\\')
-	  if (tp[1] != '\0')
-	    tp += 2;
-	  else
-	    ++tp;
+	if (tp[0] == '\\' && tp[1] != '\0')
+	  tp += 2;
 	else
 	  ++tp;