X-Git-Url: http://git.openbox.org/?p=dana%2Fopenbox.git;a=blobdiff_plain;f=obt%2Fpaths.c;h=aa76b8efd36fbe63f898ffa559ce0164022851a0;hp=d2e230dffd028e39cf144b6811c559536eda2e0c;hb=30fe9697dfd7276a8d18cdecde9809eeec80bf0d;hpb=5ced1a06fca5bd1ae31670d12848c8cde80dab5f diff --git a/obt/paths.c b/obt/paths.c index d2e230d..aa76b8e 100644 --- a/obt/paths.c +++ b/obt/paths.c @@ -88,8 +88,10 @@ static GSList* split_paths(const gchar *paths) if (!paths) return NULL; spl = g_strsplit(paths, ":", -1); - for (it = spl; *it; ++it) - list = slist_path_add(list, *it, (GSListFunc) g_slist_append); + for (it = spl; *it; ++it) { + if ((*it)[0]) /* skip empty strings */ + list = slist_path_add(list, *it, (GSListFunc) g_slist_append); + } g_free(spl); return list; }