changeset 18042:25819c54a963

Make this work with the changes in revision a58972b72c7aa0fa0899c5a6b96e51cd6c427ab4. Again, I really wish I knew how to optimize this properly.
author Richard Laager <rlaager@wiktel.com>
date Mon, 04 Jun 2007 05:56:57 +0000
parents 678d78b7fa34
children 58e28ccf08e6
files libpurple/util.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;