From 6fb0f6f4c6c5e17b9485fc666823feede35723b9 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 5 Apr 2011 01:50:23 +0200 Subject: Compare pointers to "NULL" instead of "0". "bad_zero.cocci" spatch from http://coccinelle.lip6.fr/impact_linux.php. Signed-off-by: Lukas Fleischer --- src/custom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/custom.c') diff --git a/src/custom.c b/src/custom.c index 29a6261..e8cf0fe 100644 --- a/src/custom.c +++ b/src/custom.c @@ -1243,7 +1243,7 @@ print_keys_bindings (WINDOW *win, int selected_row, int selected_elm, int yoff) int pos; pos = KEYPOS; - while ((key = keys_action_nkey (action, noelm)) != 0) + while ((key = keys_action_nkey (action, noelm)) != NULL) { if (noelm == selected_elm) print_key_incolor (win, key, y, pos); -- cgit v1.2.3-54-g00ecf