libpurple/log.c

branch
release-2.1.0
changeset 18152
a0178de25d18
parent 18149
4effa2c1f199
child 18166
3edbd0ef7f1f
--- 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. */

mercurial