summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0c9be2d)
raw | patch | inline | side by side (parent: 0c9be2d)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:40:01 +0000 (10:40 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:40:01 +0000 (10:40 +0200) |
[src/utils_rrdcreate.c:358]: (style) Checking if unsigned variable 'ds_num' is less than zero.
src/utils_rrdcreate.c | patch | blob | history |
diff --git a/src/utils_rrdcreate.c b/src/utils_rrdcreate.c
index fb04201cedd4f3b886eeb67447585886346db8bf..2012b849c8dea9dabdc569e5268d6efe5696949f 100644 (file)
--- a/src/utils_rrdcreate.c
+++ b/src/utils_rrdcreate.c
return (-1);
}
- if (ds_num <= 0)
+ if (ds_num == 0)
{
sfree (ds_def);
return (0);