diff libgaim/xmlnode.c @ 14228:c18bdf510325

[gaim-migrate @ 16910] Fix autogen.sh to run glib-gettextize Fix CFLAGS when gstreamer is not installed Make things work with gtk < 2.6, in part by borrowing some code from gdk Don't link gntgaim with gstreamer, xss or sm committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 20 Aug 2006 17:49:58 +0000
parents 60b1bc8dbf37
children 950f3ed6baa0
line wrap: on
line diff
--- a/libgaim/xmlnode.c	Sun Aug 20 17:34:21 2006 +0000
+++ b/libgaim/xmlnode.c	Sun Aug 20 17:49:58 2006 +0000
@@ -403,12 +403,15 @@
 		xmlnode_set_namespace(node, namespace);
 
 		for(i=0; i < nb_attributes * 5; i+=5) {
+#ifdef HAVE_LIBXML
+			char *txt;
+#endif
 			int attrib_len = attributes[i+4] - attributes[i+3];
 			char *attrib = g_malloc(attrib_len + 1);
 			memcpy(attrib, attributes[i+3], attrib_len);
 			attrib[attrib_len] = '\0';
 #ifdef HAVE_LIBXML
-			char *txt = attrib;
+			txt = attrib;
 			attrib = gaim_unescape_html(txt);
 			g_free(txt);
 #endif