Code

libcollectdclient: Check if the file handle is valid before writing to it.
[collectd.git] / src / dbi.c
index d970938e0fff0d616c93eeaa435a09a3805d45e5..5be9cae43c1d28cb8b6febbe2161a29e7d8e62ba 100644 (file)
--- a/src/dbi.c
+++ b/src/dbi.c
@@ -357,7 +357,7 @@ static int cdbi_config (oconfig_item_t *ci) /* {{{ */
     oconfig_item_t *child = ci->children + i;
     if (strcasecmp ("Query", child->key) == 0)
       udb_query_create (&queries, &queries_num, child,
-          /* callback = */ NULL);
+          /* callback = */ NULL, /* legacy mode = */ 0);
     else if (strcasecmp ("Database", child->key) == 0)
       cdbi_config_add_database (child);
     else