summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 22a81e3)
raw | patch | inline | side by side (parent: 22a81e3)
author | Florian Forster <octo@huhu.verplant.org> | |
Tue, 15 May 2007 13:30:42 +0000 (15:30 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 15 May 2007 13:30:42 +0000 (15:30 +0200) |
src/plugin.c | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index 7dd7bd96270618c45a34aec331da7e81b9fbabe9..64dbf7805c92cccef4113bdadac24e928b332b45 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
vl->plugin, vl->plugin_instance,
ds->type, vl->type_instance);
+#if COLLECT_DEBUG
+ assert (ds->ds_num == vl->values_len);
+#else
+ if (ds->ds_num != vl->values_len)
+ {
+ ERROR ("plugin: ds->type = %s: (ds->ds_num = %i) != "
+ "(vl->values_len = %i)",
+ ds->type, ds->ds_num, vl->values_len);
+ return (-1);
+ }
+#endif
+
le = llist_head (list_write);
while (le != NULL)
{