From 444ec92d8100492d637ffa75c03a0b33b12f84b3 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 22 Feb 2020 10:57:40 +0300 Subject: [PATCH] (get_key_code): fix coding style. Signed-off-by: Andrew Borodin --- lib/tty/key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;