summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bb98f71)
raw | patch | inline | side by side (parent: bb98f71)
author | Florian Forster <octo@collectd.org> | |
Fri, 2 Sep 2016 06:23:27 +0000 (08:23 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 2 Sep 2016 06:23:27 +0000 (08:23 +0200) |
This addresses a scan-build issue.
src/ceph.c | patch | blob | history |
diff --git a/src/ceph.c b/src/ceph.c
index e6d3767b3140d786698f054796b23b4ed903b78f..ad0688ccb22245a6131e135c3f09dddca5a93a74 100644 (file)
--- a/src/ceph.c
+++ b/src/ceph.c
struct timeval end_tv;
struct cconn io_array[g_num_daemons];
+ if (g_num_daemons < 1)
+ {
+ ERROR ("ceph plugin: No daemons configured. See the \"Daemon\" config option.");
+ return ENOENT;
+ }
+
DEBUG("ceph plugin: entering cconn_main_loop(request_type = %d)", request_type);
/* create cconn array */