X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fnetwork.c;h=ae5ed09652729b2fd7b679d8f90936c07eec59f3;hb=30245d7b0ad267604d3675cfba66c2eda775e236;hp=04dffe8b3251804a2500356edd1ee0e183d9be02;hpb=7f6c4a16fdacab6c11f8a7756f0d8438ce198288;p=collectd.git diff --git a/src/network.c b/src/network.c index 04dffe8b..ae5ed096 100644 --- a/src/network.c +++ b/src/network.c @@ -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; @@ -2538,10 +2538,6 @@ static int network_receive (void) /* {{{ */ receive_list_tail = private_list_tail; receive_list_length += private_list_length; - private_list_head = NULL; - private_list_tail = NULL; - private_list_length = 0; - pthread_cond_signal (&receive_list_cond); pthread_mutex_unlock (&receive_list_lock); }