From: Ruben Kerkhof Date: Sat, 23 Apr 2016 08:40:01 +0000 (+0200) Subject: rrdcreate.c: ds_num is unsigned X-Git-Tag: collectd-5.6.0~329^2~38 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=02cec0e018e6f2ed0d80dc982c43686e98f3e899;p=collectd.git rrdcreate.c: ds_num is unsigned [src/utils_rrdcreate.c:358]: (style) Checking if unsigned variable 'ds_num' is less than zero. --- 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);