aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl-core.c
diff options
context:
space:
mode:
authorGravatar Ciprian Dorin, Craciun <ciprian@volution.ro>2009-11-29 14:15:25 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-12-01 22:07:31 +0100
commit1154d353fff5c5ee23a7cb8e6cadbf974ff492c0 (patch)
tree545fe73fa69bf77b5ed3478ce14f39060f303962 /uzbl-core.c
parentdfcbacd6305f31df28611f950e55187a66adff6d (diff)
Fixed compilation warning introduced by the following commit: Fixed `run_handler (const gchar *act, const gchar *args)` by calling `inject_handler_args` only if `act` contains both a command and some parameters.
Diffstat (limited to 'uzbl-core.c')
-rw-r--r--uzbl-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/uzbl-core.c b/uzbl-core.c
index f0870fc..f224c60 100644
--- a/uzbl-core.c
+++ b/uzbl-core.c
@@ -2152,7 +2152,7 @@ run_handler (const gchar *act, const gchar *args) {
g_free(expanded);
} else {
inparts_[0] = parts[0];
- inparts_[1] = args;
+ inparts_[1] = g_strdup(args);
inparts = inparts_;
}
@@ -2161,7 +2161,8 @@ run_handler (const gchar *act, const gchar *args) {
if (inparts != inparts_) {
g_free(inparts[0]);
g_free(inparts[1]);
- }
+ } else
+ g_free(inparts[1]);
}
g_strfreev(parts);
}