summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d0b94a5)
raw | patch | inline | side by side (parent: d0b94a5)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 10:13:21 +0000 (12:13 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 10:13:49 +0000 (12:13 +0200) |
[src/apache.c:140]: (style) Checking if unsigned variable 'len' is less than zero.
src/apache.c | patch | blob | history |
diff --git a/src/apache.c b/src/apache.c
index baa6081a6046743679a6949b16d2f07e347aed24..0db532866ead5f8fef34ebebe12db6e2058ecf2a 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
return (0);
}
- if (len <= 0)
+ if (len == 0)
return (len);
if ((st->apache_buffer_fill + len) >= st->apache_buffer_size)
return (0);
}
- if (len <= 0)
+ if (len == 0)
return (len);
/* look for the Server header */