Compare pointers to "NULL" instead of "0".

"bad_zero.cocci" spatch from http://coccinelle.lip6.fr/impact_linux.php.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-04-05 01:50:23 +02:00
parent c4c7c8af5d
commit 6fb0f6f4c6
12 changed files with 93 additions and 93 deletions

View File

@@ -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);