projects
/
uzbl-mobile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23df8d4
)
Fix invalid free when unsetting useragent
author
DuClare
<akarinotengoku@gmail.com>
Fri, 22 May 2009 14:24:59 +0000
(17:24 +0300)
committer
DuClare
<akarinotengoku@gmail.com>
Fri, 22 May 2009 14:24:59 +0000
(17:24 +0300)
uzbl.c
patch
|
blob
|
history
diff --git
a/uzbl.c
b/uzbl.c
index
507fdff
..
233d5fc
100644
(file)
--- a/
uzbl.c
+++ b/
uzbl.c
@@
-1839,10
+1839,9
@@
settings_init () {
static gchar*
set_useragent(gchar *val) {
- if (*val == ' ') {
- g_free(val);
+ if (*val == ' ')
return NULL;
- }
+
gchar *ua = expand_template(val);
if (ua)
g_object_set(G_OBJECT(uzbl.net.soup_session), SOUP_SESSION_USER_AGENT, ua, NULL);