From bf138553afe6eecd0e6c218dc6ae4f63065e4196 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Tue, 2 Dec 2008 22:06:15 +0100 Subject: Use NULL, not zero, for pointers From Magnus Kessler http://lists.freedesktop.org/archives/xorg/2008-October/039799.html http://lists.freedesktop.org/archives/xorg/attachments/20081030/b2ea5b1c/attachment-0001.bin --- src/accept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/accept.c') diff --git a/src/accept.c b/src/accept.c index f102b29..150d8bd 100644 --- a/src/accept.c +++ b/src/accept.c @@ -50,7 +50,7 @@ IceAcceptConnection ( * Accept the connection. */ - if ((newconn = _IceTransAccept (listenObj->trans_conn, &status)) == 0) + if ((newconn = _IceTransAccept (listenObj->trans_conn, &status)) == NULL) { if (status == TRANS_ACCEPT_BAD_MALLOC) *statusRet = IceAcceptBadMalloc; -- cgit v1.2.3