diff --git a/lib/tty/key.c b/lib/tty/key.c index 2e32ce6ce..ee17e1308 100644 --- a/lib/tty/key.c +++ b/lib/tty/key.c @@ -1750,7 +1750,7 @@ get_key_code (int no_delay) while (d == ESC_CHAR) d = ALT (*pending_keys++); - bad_seq = (*pending_keys != ESC_CHAR && *pending_keys != 0); + bad_seq = (*pending_keys != ESC_CHAR && *pending_keys != '\0'); if (*pending_keys == '\0' || bad_seq) pending_keys = seq_append = NULL;