summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 47bff76)
raw | patch | inline | side by side (parent: 47bff76)
author | Marius Rieder <marius.rieder@durchmesser.ch> | |
Sun, 6 May 2007 14:41:45 +0000 (16:41 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 6 May 2007 14:41:45 +0000 (16:41 +0200) |
src/plugin.c | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index ee1240cb575858ea9786bdcd39f76bdc921f2861..7dd7bd96270618c45a34aec331da7e81b9fbabe9 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
data_set_t *ds_copy;
int i;
- if (llist_search (list_data_set, ds->type) != NULL)
+ if ((list_data_set != NULL)
+ && (llist_search (list_data_set, ds->type) != NULL))
{
NOTICE ("Replacing DS `%s' with another version.", ds->type);
plugin_unregister_data_set (ds->type);
llentry_t *e;
data_set_t *ds;
+ if (list_data_set == NULL)
+ return (-1);
+
e = llist_search (list_data_set, name);
if (e == NULL)
data_set_t *ds;
llentry_t *le;
- if (list_write == NULL)
+ if ((list_write == NULL) || (list_data_set == NULL))
return (-1);
le = llist_search (list_data_set, name);