From: Robert Manea Date: Fri, 24 Jul 2009 15:26:54 +0000 (+0200) Subject: remove unnecessary g_strdup() X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=2fb1c9925397bec6834eb5e23f1aa64685c45d2a;p=uzbl-mobile remove unnecessary g_strdup() --- diff --git a/uzbl.c b/uzbl.c index db14966..e35218e 100644 --- a/uzbl.c +++ b/uzbl.c @@ -303,11 +303,8 @@ expand(char *s, guint recurse) { if(etype == EXP_SIMPLE_VAR || etype == EXP_BRACED_VAR) { if( (c = g_hash_table_lookup(uzbl.comm.proto_var, ret)) ) { - //printf("expand() RET: %s\n", ret); if(c->type == TYPE_STR && *c->ptr != NULL) { - //printf("expand() buf: %s\n\n", (char *)*c->ptr); - gchar *tmp = g_strdup((char *)*c->ptr); - g_string_append(buf, tmp); + g_string_append(buf, (gchar *)*c->ptr); } else if(c->type == TYPE_INT) { g_string_append_printf(buf, "%d", (int)*c->ptr); }