summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 229097a)
raw | patch | inline | side by side (parent: 229097a)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 29 Mar 2008 08:57:13 +0000 (09:57 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 29 Mar 2008 08:57:13 +0000 (09:57 +0100) |
This makes calling the function easier, because initialization of the
ignorelist in the plugin usually depends on configuration parameters..
ignorelist in the plugin usually depends on configuration parameters..
src/utils_ignorelist.c | patch | blob | history |
diff --git a/src/utils_ignorelist.c b/src/utils_ignorelist.c
index 94d6bdae7c92a5989149fb2ce73e0b3a62e4ecec..1d9467fe210d89e6ce0f9c6537e3be9e389d6e8e 100644 (file)
--- a/src/utils_ignorelist.c
+++ b/src/utils_ignorelist.c
/**
* collectd - src/utils_ignorelist.c
* Copyright (C) 2006 Lubos Stanek <lubek at users.sourceforge.net>
+ * Copyright (C) 2008 Florian Forster <octo at verplant.org>
*
* This program is free software; you can redistribute it and/
* or modify it under the terms of the GNU General Public Li-
*
* Authors:
* Lubos Stanek <lubek at users.sourceforge.net>
+ * Florian Forster <octo at verplant.org>
**/
/**
* ignorelist handles plugin's list of configured collectable
{
ignorelist_item_t *traverse;
- assert (il != NULL);
-
/* if no entries, collect all */
- if (il->head == NULL)
+ if ((il == NULL) || (il->head == NULL))
return (0);
if ((entry == NULL) || (strlen (entry) == 0))