summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 779c43b)
raw | patch | inline | side by side (parent: 779c43b)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 09:24:08 +0000 (11:24 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 09:24:08 +0000 (11:24 +0200) |
[src/network.c:937]: (style) Checking if unsigned variable 'output_len' is less than zero.
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index ccd033b1c6476484a34751b0d8f1d28ed6256ca5..bf1f2ab6069f61a93443e607ef6821571b5691e3 100644 (file)
--- a/src/network.c
+++ b/src/network.c
uint16_t pkg_length;
size_t payload_size;
- if (output_len <= 0)
+ if (output_len == 0)
return (EINVAL);
if (buffer_len < header_size)