From ef9e5a8ccca2ff125dd381edd2f02a52b3601d5b Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 11:24:08 +0200 Subject: [PATCH] network plugin: output_len is unsigned [src/network.c:937]: (style) Checking if unsigned variable 'output_len' is less than zero. --- src/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network.c b/src/network.c index ccd033b1..bf1f2ab6 100644 --- a/src/network.c +++ b/src/network.c @@ -934,7 +934,7 @@ static int parse_part_string (void **ret_buffer, size_t *ret_buffer_len, uint16_t pkg_length; size_t payload_size; - if (output_len <= 0) + if (output_len == 0) return (EINVAL); if (buffer_len < header_size) -- 2.30.2