Code

ping plugin: Remove "static" from local variable.
authorFlorian Forster <octo@collectd.org>
Tue, 8 Dec 2015 13:31:33 +0000 (14:31 +0100)
committerFlorian Forster <octo@collectd.org>
Tue, 8 Dec 2015 13:31:33 +0000 (14:31 +0100)
This caused Coverity to see concurrency issues where there are none.

CID: 37934

src/ping.c

index c70096c76a76037fec1a7f70a9e70d47e215ec58..e1a31092c078002f410ff7e0fd5b61ba4399dbb7 100644 (file)
@@ -236,7 +236,7 @@ static int ping_dispatch_all (pingobj_t *pingobj) /* {{{ */
 
 static void *ping_thread (void *arg) /* {{{ */
 {
-  static pingobj_t *pingobj = NULL;
+  pingobj_t *pingobj = NULL;
 
   struct timeval  tv_begin;
   struct timeval  tv_end;