/pidgin/main: 9571912ae4fc: Fix glib warning

Tomasz Wasilczyk twasilczyk at pidgin.im
Wed Apr 30 20:00:39 EDT 2014


Changeset: 9571912ae4fc97fe3a79227bb7a9cb134c5229b9
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-05-01 02:00 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/9571912ae4fc

Description:

Fix glib warning

diffstat:

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

diffs (16 lines):

diff --git a/libpurple/dnssrv.c b/libpurple/dnssrv.c
--- a/libpurple/dnssrv.c
+++ b/libpurple/dnssrv.c
@@ -197,11 +197,11 @@ srv_reorder(GList *list, int num)
 	 */
 	cur = list;
 	while (container_list) {
+		g_return_if_fail(cur);
 		container_list = select_random_response(container_list, &container);
 		cur->data = container->response;
 		g_free(container);
 		cur = cur->next;
-		g_return_if_fail(cur);
 	}
 }
 



More information about the Commits mailing list