summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9674512)
raw | patch | inline | side by side (parent: 9674512)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 20 Nov 2006 17:15:39 +0000 (18:15 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 20 Nov 2006 17:15:39 +0000 (18:15 +0100) |
Also assert the object to be non-empty.
src/utils_ignorelist.c | patch | blob | history |
diff --git a/src/utils_ignorelist.c b/src/utils_ignorelist.c
index 31a3e665fd8609df3aac6df99f567729f5c5bb65..27eb987c94fec0c534a5e82417a36e904cbefee3 100644 (file)
--- a/src/utils_ignorelist.c
+++ b/src/utils_ignorelist.c
{
ignorelist_item_t *traverse;
+ assert (il != NULL);
+
/* if no entries, collect all */
if (il->head == NULL)
return (0);
+ if ((entry == NULL) || (strlen (entry) == 0))
+ return (0);
+
/* traverse list and check entries */
for (traverse = il->head; traverse != NULL; traverse = traverse->next)
{