summaryrefslogtreecommitdiff
path: root/src/add_window.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-18 10:42:45 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-18 10:42:45 -0700
commit8b2a314c267071656ca4d86bae56c6d82bb8127a (patch)
tree431c1d61f9def1c0f38063e6d4c82e6797ce29b9 /src/add_window.c
parentc2e232e6915356eba3edf2efea99720746694c52 (diff)
AddWindow: Use NULL instead of 0 for null pointer check
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/add_window.c')
-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);