summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/add_window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/add_window.c b/src/add_window.c
index 73465df..99481b0 100644
--- a/src/add_window.c
+++ b/src/add_window.c
@@ -171,7 +171,7 @@ AddWindow(Window w, int iconm, IconMgr *iconp)
/* allocate space for the twm window */
tmp_win = calloc(1, sizeof(TwmWindow));
- if (tmp_win == 0)
+ if (tmp_win == NULL)
{
fprintf (stderr, "%s: Unable to allocate memory to manage window ID %lx.\n",
ProgramName, w);