diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-18 10:42:45 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-18 10:42:45 -0700 |
commit | 8b2a314c267071656ca4d86bae56c6d82bb8127a (patch) | |
tree | 431c1d61f9def1c0f38063e6d4c82e6797ce29b9 | |
parent | c2e232e6915356eba3edf2efea99720746694c52 (diff) |
AddWindow: Use NULL instead of 0 for null pointer check
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/add_window.c | 2 |
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); |