]> Dogcows Code - chaz/openbox/commitdiff
was adding an extra / in ob_expand_tilde
authorDana Jansens <danakj@orodu.net>
Thu, 4 Sep 2003 15:31:17 +0000 (15:31 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 4 Sep 2003 15:31:17 +0000 (15:31 +0000)
openbox/openbox.c

index 3f32917b25f58703bc04b9f5bb32549db79723cb..e1467845532ededa957f565cfcce742ccc0f7b2c 100644 (file)
@@ -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;
 }
This page took 0.026075 seconds and 4 git commands to generate.