pidgin: cfb4e6cc: Fix handling of empty groups in MySpace....

datallah at pidgin.im datallah at pidgin.im
Fri May 16 17:06:27 EDT 2008


-----------------------------------------------------------------
Revision: cfb4e6cc05da7ca3188e215dd54ad67643b46e3f
Ancestor: a1d611f60e95c75092532152273d1dc730e89bc1
Author: datallah at pidgin.im
Date: 2008-05-16T20:47:28
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/cfb4e6cc05da7ca3188e215dd54ad67643b46e3f

Modified files:
        libpurple/protocols/myspace/myspace.c

ChangeLog: 

Fix handling of empty groups in MySpace. Fixes #3378.

-------------- next part --------------
============================================================
--- libpurple/protocols/myspace/myspace.c	c486d50f99c5ec94bd9cd4aed86dabbdb408db03
+++ libpurple/protocols/myspace/myspace.c	515331374c14bf818e4331d79d87ddb2215f1e36
@@ -2824,7 +2824,8 @@ msim_add_contact_from_server_cb(MsimSess
 	/* 1. Creates a new group, or gets existing group if it exists (or so
 	 * the documentation claims). */
 	group_name = msim_msg_get_string(contact_info, "GroupName");
-	if (!group_name) {
+	if (!group_name || (*group_name == '\0')) {
+		g_free(group_name);
 		group_name = g_strdup(_("IM Friends"));
 		purple_debug_info("myspace", "No GroupName specified, defaulting to '%s'.\n", group_name);
 	}


More information about the Commits mailing list