Make this work with the changes in revision release-2.1.0

Mon, 04 Jun 2007 05:56:57 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Mon, 04 Jun 2007 05:56:57 +0000
branch
release-2.1.0
changeset 18104
79ecfedd0af6
parent 18103
0b37f2f70dfb
child 18108
cb8669f16994

Make this work with the changes in revision
2f24c76fbb7c3498befa77a93d93222b456f88de.

Again, I really wish I knew how to optimize this properly.

libpurple/util.c file | annotate | diff | comparison | revisions
--- a/libpurple/util.c	Mon Jun 04 05:55:13 2007 +0000
+++ b/libpurple/util.c	Mon Jun 04 05:56:57 2007 +0000
@@ -1449,7 +1449,7 @@
 					pt->src_tag = "img";
 					pt->dest_tag = "img";
 					tags = g_list_prepend(tags, pt);
-					if(src && src->len)
+					if(xhtml && src && src->len)
 						g_string_append_printf(xhtml, "<img src='%s' alt=''>", g_strstrip(src->str));
 					else
 						pt->ignore = TRUE;

mercurial