X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fopenbox.c;h=e1467845532ededa957f565cfcce742ccc0f7b2c;hb=fe2f637e2bda1803ea89ddb80201a3239f5ae284;hp=3f32917b25f58703bc04b9f5bb32549db79723cb;hpb=755ec08aa36cbd635a841fe8c374b9b751c20213;p=chaz%2Fopenbox 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; }