From 0d546c4bb841255c4cb0405fee8983b62ec0941a Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:42:52 +0200 Subject: [PATCH] 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. --- src/utils_db_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.0