Merge pull request #3344 from Self-Perfection/patch-2
authorMatthias Runge <mrunge@redhat.com>
Mon, 9 Dec 2019 21:01:49 +0000 (22:01 +0100)
committerGitHub <noreply@github.com>
Mon, 9 Dec 2019 21:01:49 +0000 (22:01 +0100)
Fix linking with Python 3.8

src/daemon/configfile.c

index 3a7364e..61fa901 100644 (file)
@@ -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) {