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

Tomasz Wasilczyk <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 7f35f441b93959b23612ddd39c3932000b25402e
Author:	 Tomasz Wasilczyk <[email protected]>
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);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.