summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c6efc21)
raw | patch | inline | side by side (parent: c6efc21)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 12 May 2007 18:00:16 +0000 (20:00 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 12 May 2007 18:00:16 +0000 (20:00 +0200) |
src/unixsock.c | patch | blob | history |
diff --git a/src/unixsock.c b/src/unixsock.c
index 8211bf46e9f7a686395183444b06da7fd90e1977..a74e64e69e23b5d91c72f8815eb1c5cd7635b5a9 100644 (file)
--- a/src/unixsock.c
+++ b/src/unixsock.c
DEBUG ("unixsock plugin: cache_insert: ds->type = %s; ds->ds_num = %i;"
" vl->values_len = %i;",
ds->type, ds->ds_num, vl->values_len);
+#if COLLECT_DEBUG
assert (ds->ds_num == vl->values_len);
+#else
+ if (ds->ds_num != vl->values_len)
+ {
+ ERROR ("unixsock plugin: ds->type = %s: (ds->ds_num = %i) != "
+ "(vl->values_len = %i)",
+ ds->type, ds->ds_num, vl->values_len);
+ return (-1);
+ }
+#endif
vc = (value_cache_t *) malloc (sizeof (value_cache_t));
if (vc == NULL)