changeset 32440:1809d65d4f92

This strlen seems redundant.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 04 Jan 2012 01:21:28 +0000
parents 5022cf604d6e
children c2d93d2434f5
files pidgin/gtkwebview.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkwebview.c	Wed Jan 04 01:18:01 2012 +0000
+++ b/pidgin/gtkwebview.c	Wed Jan 04 01:21:28 2012 +0000
@@ -94,8 +94,8 @@
 static char *
 replace_img_id_with_src(GtkWebView *view, const char *html)
 {
-	GString *buffer = g_string_sized_new(strlen(html));
-	const char* cur = html;
+	GString *buffer = g_string_new(NULL);
+	const char *cur = html;
 	char *id;
 	int nid;