From: Ruben Kerkhof Date: Sat, 23 Apr 2016 08:42:52 +0000 (+0200) Subject: utils_db_query.c: r->instances_num is unsigned X-Git-Tag: collectd-5.6.0~329^2~36 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0d546c4bb841255c4cb0405fee8983b62ec0941a;p=collectd.git utils_db_query.c: r->instances_num is unsigned [src/utils_db_query.c:237]: (style) Checking if unsigned variable 'instances_num' is less than zero. --- 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;