pidgin: 4ef93b0d: This strlen seems redundant.
qulogic at pidgin.im
qulogic at pidgin.im
Wed Jan 4 02:08:28 EST 2012
----------------------------------------------------------------------
Revision: 4ef93b0d16e37a341c7eaf97fd203dba5d92bde3
Parent: 424ba215a8ff4ec3bb9fa49000e3c060dfaaa48f
Author: qulogic at pidgin.im
Date: 01/03/12 20:21:28
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4ef93b0d16e37a341c7eaf97fd203dba5d92bde3
Changelog:
This strlen seems redundant.
Changes against parent 424ba215a8ff4ec3bb9fa49000e3c060dfaaa48f
patched pidgin/gtkwebview.c
-------------- next part --------------
============================================================
--- pidgin/gtkwebview.c ba3d24c73d8b3be0174354071ded446de23c1d8e
+++ pidgin/gtkwebview.c 8c8b8793b77e210fc83c351473f467494f7664c9
@@ -94,8 +94,8 @@ replace_img_id_with_src(GtkWebView *view
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;
More information about the Commits
mailing list