projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
071af20
)
Merge pull request #3344 from Self-Perfection/patch-2
author
Matthias Runge
<mrunge@redhat.com>
Mon, 9 Dec 2019 21:01:49 +0000
(22:01 +0100)
committer
GitHub
<noreply@github.com>
Mon, 9 Dec 2019 21:01:49 +0000
(22:01 +0100)
Fix linking with Python 3.8
src/daemon/configfile.c
patch
|
blob
|
history
diff --git
a/src/daemon/configfile.c
b/src/daemon/configfile.c
index
3a7364e
..
61fa901
100644
(file)
--- a/
src/daemon/configfile.c
+++ b/
src/daemon/configfile.c
@@
-404,6
+404,10
@@
static int dispatch_block_plugin(oconfig_item_t *ci) {
}
}
+ /* Try to be backward-compatible with previous versions */
+ if (ci->children_num == 0)
+ return 0;
+
/* Hm, no complex plugin found. Dispatch the values one by one */
cf_callback_t *cf_cb = cf_search(plugin_name);
if (cf_cb == NULL) {