From 8b2a314c267071656ca4d86bae56c6d82bb8127a Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 18 Aug 2013 10:42:45 -0700 Subject: AddWindow: Use NULL instead of 0 for null pointer check Signed-off-by: Alan Coopersmith --- src/add_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/add_window.c') 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); -- cgit v1.2.3