projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4acbb35
)
common.c: fields_num is unsigned
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:00:37 +0000
(12:00 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:00:37 +0000
(12:00 +0200)
[src/daemon/common.c:338]: (style) Checking if unsigned variable 'fields_num' is less than zero.
src/daemon/common.c
patch
|
blob
|
history
diff --git
a/src/daemon/common.c
b/src/daemon/common.c
index
aedf8b2
..
546da3b
100644
(file)
--- a/
src/daemon/common.c
+++ b/
src/daemon/common.c
@@
-335,7
+335,7
@@
int strjoin (char *buffer, size_t buffer_size,
size_t sep_len;
size_t i;
- if ((buffer_size < 1) || (fields_num
<
= 0))
+ if ((buffer_size < 1) || (fields_num
=
= 0))
return (-1);
memset (buffer, 0, buffer_size);