summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f3cc76f)
raw | patch | inline | side by side (parent: f3cc76f)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:48:11 +0000 (10:48 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:49:10 +0000 (10:49 +0200) |
[src/olsrd.c:666]: (style) Checking if unsigned variable 'buffer_len' is less than zero.
src/olsrd.c | patch | blob | history |
diff --git a/src/olsrd.c b/src/olsrd.c
index 6be7cb583d7f61918bd25254b29723918212c277..6d22d98ad4d4bb9920ef606004864fa4d777f16f 100644 (file)
--- a/src/olsrd.c
+++ b/src/olsrd.c
{
/* An empty line ends the table. */
buffer_len = strchomp (buffer);
- if (buffer_len <= 0)
+ if (buffer_len == 0)
{
(*callback) (lineno, /* fields_num = */ 0, /* fields = */ NULL);
break;
while (fgets (buffer, sizeof (buffer), fh) != NULL)
{
buffer_len = strchomp (buffer);
- if (buffer_len <= 0)
+ if (buffer_len == 0)
continue;
if (strcmp ("Table: Links", buffer) == 0)