summaryrefslogtreecommitdiff
path: root/src/keys.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-04-05 01:50:23 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-04-05 09:27:04 +0200
commit6fb0f6f4c6c5e17b9485fc666823feede35723b9 (patch)
tree2330c32238bf13fe89a3b25cf76f9abbbf433e51 /src/keys.c
parentc4c7c8af5d4180905f1b1401a259ec8ce3c5ac75 (diff)
downloadcalcurse-6fb0f6f4c6c5e17b9485fc666823feede35723b9.zip
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>
Diffstat (limited to 'src/keys.c')
-rw-r--r--src/keys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keys.c b/src/keys.c
index 792a8ad..916d4e8 100644
--- a/src/keys.c
+++ b/src/keys.c
@@ -145,7 +145,7 @@ keys_free (void)
for (key = 0; key < NBKEYS; key++)
{
- if (keys[key] == 0)
+ if (keys[key] == NULL)
continue;
i = &keys[key];
@@ -607,7 +607,7 @@ keys_check_missing_bindings (void)
for (i = 0; i < NBKEYS; i++)
{
- if (keys[i] == 0)
+ if (keys[i] == NULL)
return 1;
}
return 0;
@@ -620,7 +620,7 @@ keys_fill_missing (void)
for (i = 0; i < NBKEYS; i++)
{
- if (keys[i] == 0)
+ if (keys[i] == NULL)
{
char *p, tmpbuf[BUFSIZ];