network plugin: Avoid "status may be used uninitialized" warning.
authorFlorian Forster <octo@collectd.org>
Wed, 17 Jun 2015 09:41:55 +0000 (11:41 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 17 Jun 2015 09:41:55 +0000 (11:41 +0200)
src/network.c

index 04dffe8..083571b 100644 (file)
@@ -2415,7 +2415,7 @@ static int network_receive (void) /* {{{ */
        int  buffer_len;
 
        int i;
-       int status;
+       int status = 0;
 
        receive_list_entry_t *private_list_head;
        receive_list_entry_t *private_list_tail;