diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-04-05 01:50:23 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-04-05 09:27:04 +0200 |
commit | 6fb0f6f4c6c5e17b9485fc666823feede35723b9 (patch) | |
tree | 2330c32238bf13fe89a3b25cf76f9abbbf433e51 /src/wins.c | |
parent | c4c7c8af5d4180905f1b1401a259ec8ce3c5ac75 (diff) | |
download | calcurse-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/wins.c')
-rw-r--r-- | src/wins.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -266,7 +266,7 @@ wins_init (void) void wins_scrollwin_init (struct scrollwin *sw) { - EXIT_IF (sw == 0, "null pointer"); + EXIT_IF (sw == NULL, "null pointer"); sw->win.p = newwin (sw->win.h, sw->win.w, sw->win.y, sw->win.x); sw->pad.p = newpad (sw->pad.h, sw->pad.w); sw->first_visible_line = 0; @@ -277,7 +277,7 @@ wins_scrollwin_init (struct scrollwin *sw) void wins_scrollwin_delete (struct scrollwin *sw) { - EXIT_IF (sw == 0, "null pointer"); + EXIT_IF (sw == NULL, "null pointer"); delwin(sw->win.p); delwin(sw->pad.p); } |