diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-12-02 22:06:15 +0100 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-06 17:15:32 -0200 |
commit | bf138553afe6eecd0e6c218dc6ae4f63065e4196 (patch) | |
tree | 5cb5bf10c3789cf05497dc0b1f90f34871bcda92 /src/accept.c | |
parent | b01e82ce1deedb36c9696d4d27a3b9a5d5a52d08 (diff) |
Use NULL, not zero, for pointers
From Magnus Kessler <Magnus.Kessler@gmx.net>
http://lists.freedesktop.org/archives/xorg/2008-October/039799.html
http://lists.freedesktop.org/archives/xorg/attachments/20081030/b2ea5b1c/attachment-0001.bin
Diffstat (limited to 'src/accept.c')
-rw-r--r-- | src/accept.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |