From 88f83fc927638aef2ca0e174ba12db822df9b7ef Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 4 Sep 2003 15:31:17 +0000 Subject: [PATCH] was adding an extra / in ob_expand_tilde --- openbox/openbox.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openbox/openbox.c b/openbox/openbox.c index 3f32917b..e1467845 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -419,14 +419,12 @@ ObState ob_state() gchar *ob_expand_tilde(const gchar *f) { gchar **spl; - gchar *ret, *mid; + gchar *ret; if (!f) return NULL; spl = g_strsplit(f, "~", 0); - mid = g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S, NULL); - ret = g_strjoinv(mid, spl); - g_free(mid); + ret = g_strjoinv(g_get_home_dir(), spl); g_strfreev(spl); return ret; } -- 2.39.2