summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 176fcb8)
raw | patch | inline | side by side (parent: 176fcb8)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:50:48 +0000 (10:50 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:50:48 +0000 (10:50 +0200) |
[src/nginx.c:74]: (style) Checking if unsigned variable 'len' is less than zero.
src/nginx.c | patch | blob | history |
diff --git a/src/nginx.c b/src/nginx.c
index e493cc941560c35b50d684c24cd0ca0edca0dbff..7587c1f9b5b8429f4fb7c5e1b7db0ce04a378f35 100644 (file)
--- a/src/nginx.c
+++ b/src/nginx.c
len = (sizeof (nginx_buffer) - 1) - nginx_buffer_len;
}
- if (len <= 0)
+ if (len == 0)
return (len);
memcpy (&nginx_buffer[nginx_buffer_len], buf, len);