From: Ruben Kerkhof Date: Sat, 23 Apr 2016 09:24:08 +0000 (+0200) Subject: network plugin: output_len is unsigned X-Git-Tag: collectd-5.6.0~329^2~22 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ef9e5a8ccca2ff125dd381edd2f02a52b3601d5b;p=collectd.git network plugin: output_len is unsigned [src/network.c:937]: (style) Checking if unsigned variable 'output_len' is less than zero. --- 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)