/pidgin/main: 7f35f441b939: Fix a coverity typo

Tomasz Wasilczyk twasilczyk at pidgin.im
Thu May 15 11:30:15 EDT 2014


Changeset: 7f35f441b93959b23612ddd39c3932000b25402e
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-05-15 17:30 +0200
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/7f35f441b939

Description:

Fix a coverity typo

diffstat:

 libpurple/protocols/simple/simple.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/libpurple/protocols/simple/simple.c b/libpurple/protocols/simple/simple.c
--- a/libpurple/protocols/simple/simple.c
+++ b/libpurple/protocols/simple/simple.c
@@ -1724,7 +1724,7 @@ static void simple_newconn_cb(gpointer d
 	int newfd;
 
 	newfd = accept(source, NULL, NULL);
-	g_return_if_fail(newfd > 0);
+	g_return_if_fail(newfd >= 0);
 
 	_purple_network_set_common_socket_flags(newfd);
 



More information about the Commits mailing list