X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Fcore%2Fplugin.c;h=f581eb1629fbe3f043c02e13f6a4f3799de9b6d4;hp=bf0bdb34a20af428c73ab63250c7b0f4d3f4c00b;hb=e39a0c24a894f9e04cbf7698429dc23293c7ced9;hpb=2a5aff78eb32778a27b707aa99a2494b1371a5dd diff --git a/src/core/plugin.c b/src/core/plugin.c index bf0bdb3..f581eb1 100644 --- a/src/core/plugin.c +++ b/src/core/plugin.c @@ -1386,7 +1386,7 @@ sdb_plugin_store_metric(const char *hostname, const char *name, if ((! hostname) || (! name)) return -1; - if ((! store->type) || (! store->id)) + if (store && ((! store->type) || (! store->id))) store = NULL; iter = sdb_llist_get_iter(writer_list);