From 1154d353fff5c5ee23a7cb8e6cadbf974ff492c0 Mon Sep 17 00:00:00 2001 From: "Ciprian Dorin, Craciun" Date: Sun, 29 Nov 2009 14:15:25 +0200 Subject: 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. --- uzbl-core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'uzbl-core.c') 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); } -- cgit v1.2.3