projects
/
uzbl-mobile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0ac06c1
)
remove unnecessary g_strdup()
author
Robert Manea
<gotmor@gmail.com>
Fri, 24 Jul 2009 15:26:54 +0000
(17:26 +0200)
committer
Robert Manea
<gotmor@gmail.com>
Fri, 24 Jul 2009 15:26:54 +0000
(17:26 +0200)
uzbl.c
patch
|
blob
|
history
diff --git
a/uzbl.c
b/uzbl.c
index
db14966
..
e35218e
100644
(file)
--- 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)) ) {
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) {
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);
}
} else if(c->type == TYPE_INT) {
g_string_append_printf(buf, "%d", (int)*c->ptr);
}