X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Futils_db_query.c;h=1f5ea7ab839761fd89d31fbc46ca5c452c1294e8;hb=0d546c4bb841255c4cb0405fee8983b62ec0941a;hp=74c3a81fe7c69d8052f1ce54baae71e70a6547ac;hpb=5841d1fb13436af787c748a965084cb06e66d326;p=collectd.git diff --git a/src/utils_db_query.c b/src/utils_db_query.c index 74c3a81f..1f5ea7ab 100644 --- a/src/utils_db_query.c +++ b/src/utils_db_query.c @@ -234,7 +234,7 @@ static int udb_result_submit (udb_result_t *r, /* {{{ */ sstrncpy (vl.type, r->type, sizeof (vl.type)); /* Set vl.type_instance {{{ */ - if (r->instances_num <= 0) + if (r->instances_num == 0) { if (r->instance_prefix == NULL) vl.type_instance[0] = 0;