Marcus Meissner : server: Remove superflous NULL check (Coverity).

Alexandre Julliard julliard at winehq.org
Tue Jun 14 11:57:47 CDT 2011


Module: wine
Branch: master
Commit: 27c9a61e15cc6e6038fab12faf37430c6c913870
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=27c9a61e15cc6e6038fab12faf37430c6c913870

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Tue Jun 14 13:38:45 2011 +0200

server: Remove superflous NULL check (Coverity).

---

 server/sock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/sock.c b/server/sock.c
index b0efc16..9f62da2 100644
--- a/server/sock.c
+++ b/server/sock.c
@@ -777,7 +777,7 @@ static int accept_into_socket( struct sock *sock, struct sock *acceptsock )
     acceptsock->family  = sock->family;
     acceptsock->wparam  = 0;
     acceptsock->deferred = NULL;
-    if (acceptsock->fd) release_object( acceptsock->fd );
+    release_object( acceptsock->fd );
     acceptsock->fd = newfd;
 
     clear_error();




More information about the wine-cvs mailing list