Code

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 04dffe8b3251804a2500356edd1ee0e183d9be02..083571bc149ff16829972bbfa288148e2226fa3b 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;