changeset 18090:9018b785ef73

Remove an old line of code to make this behave as desired. Good catch, Mark.
author Richard Laager <rlaager@wiktel.com>
date Mon, 11 Jun 2007 17:36:40 +0000
parents 1f6599cd2d2b
children 7e0bd339533c ac904659104f
files libpurple/log.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/log.c	Mon Jun 11 07:48:49 2007 +0000
+++ b/libpurple/log.c	Mon Jun 11 17:36:40 2007 +0000
@@ -704,13 +704,10 @@
 
 	tmp = msg;
 
-	newmsg = g_string_new("");
-
 	while (purple_markup_find_tag("img", tmp, &start, &end, &attributes)) {
 		int imgid = 0;
 		char *idstr = NULL;
 
-		/* TODO: As implemented, this never happens */
 		if (newmsg == NULL)
 			newmsg = g_string_new("");
 
@@ -783,7 +780,6 @@
 		tmp = end + 1;
 	}
 
-	/* TODO: As implemented, this never happens */
 	if (newmsg == NULL)
 	{
 		/* No images were found to change. */