From 02cec0e018e6f2ed0d80dc982c43686e98f3e899 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:40:01 +0200 Subject: [PATCH] rrdcreate.c: ds_num is unsigned [src/utils_rrdcreate.c:358]: (style) Checking if unsigned variable 'ds_num' is less than zero. --- src/utils_rrdcreate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils_rrdcreate.c b/src/utils_rrdcreate.c index fb04201c..2012b849 100644 --- a/src/utils_rrdcreate.c +++ b/src/utils_rrdcreate.c @@ -355,7 +355,7 @@ static int ds_get (char ***ret, /* {{{ */ return (-1); } - if (ds_num <= 0) + if (ds_num == 0) { sfree (ds_def); return (0); -- 2.30.2