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 c70096c..e1a3109 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;