From 948908bb0c26f9211d744203ed89c0469f0039c8 Mon Sep 17 00:00:00 2001 From: keis Date: Sun, 18 Oct 2009 22:13:15 +0200 Subject: parseenv always returns a new string. --- events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'events.c') diff --git a/events.c b/events.c index abd794b..4eb774d 100644 --- a/events.c +++ b/events.c @@ -120,7 +120,7 @@ send_event(int type, const gchar *details, const gchar *custom_event) { /* expand shell vars */ if(details) { buf = g_strdup(details); - p_val = parseenv(g_strdup(buf ? g_strchug(buf) : " ")); + p_val = parseenv(buf ? g_strchug(buf) : " "); g_free(buf); } -- cgit v1.2.3