changeset 18294:c58b83d2b188

I like this better
author Nathan Walp <nwalp@pidgin.im>
date Tue, 03 Jul 2007 03:14:40 +0000
parents 5aae8608e1c6
children 0e8b2bb66a7d
files libpurple/protocols/jabber/iq.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/iq.c	Mon Jul 02 03:41:53 2007 +0000
+++ b/libpurple/protocols/jabber/iq.c	Tue Jul 03 03:14:40 2007 +0000
@@ -279,10 +279,10 @@
 		}
 
 		if(NULL != ui_name && NULL != ui_version) {
-			char *name_complete = g_strdup_printf("%s (libpurple " VERSION ")", ui_name);
-			xmlnode_insert_data(xmlnode_new_child(query, "name"), name_complete, -1);
-			xmlnode_insert_data(xmlnode_new_child(query, "version"), ui_version, -1);
-			g_free(name_complete);
+			char *version_complete = g_strdup_printf("%s (libpurple " VERSION ")", ui_version);
+			xmlnode_insert_data(xmlnode_new_child(query, "name"), ui_name, -1);
+			xmlnode_insert_data(xmlnode_new_child(query, "version"), version_complete, -1);
+			g_free(version_complete);
 		} else {
 			xmlnode_insert_data(xmlnode_new_child(query, "name"), "libpurple", -1);
 			xmlnode_insert_data(xmlnode_new_child(query, "version"), VERSION, -1);