Don't append empty elements.

SVN revision: 26153
This commit is contained in:
sebastid 2006-09-25 22:55:43 +00:00 committed by sebastid
parent 3232c1d19b
commit 035e68b394
1 changed files with 2 additions and 2 deletions

View File

@ -911,7 +911,7 @@ ecore_desktop_paths_to_hash(const char *paths)
p++;
}
*pp = '\0';
ecore_hash_set(result, strdup(buf), strdup(buf));
if (*buf) ecore_hash_set(result, strdup(buf), strdup(buf));
if (*p) p++;
else p = NULL;
}
@ -963,7 +963,7 @@ ecore_desktop_paths_to_list(const char *paths)
p++;
}
*pp = '\0';
ecore_list_append(result, strdup(buf));
if (*buf) ecore_list_append(result, strdup(buf));
if (*p) p++;
else p = NULL;
}