summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 86c6d27)
raw | patch | inline | side by side (parent: 86c6d27)
author | Florian Forster <octo@collectd.org> | |
Tue, 8 Dec 2015 13:38:05 +0000 (14:38 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 8 Dec 2015 13:38:05 +0000 (14:38 +0100) |
This is primarily to make Coverity happy.
CID: 37976
CID: 37976
src/ping.c | patch | blob | history |
diff --git a/src/ping.c b/src/ping.c
index e1a31092c078002f410ff7e0fd5b61ba4399dbb7..ecbbd9d0f32960b0174f350fe003fe68a8e5ce51 100644 (file)
--- a/src/ping.c
+++ b/src/ping.c
status = -1;
}
+ pthread_mutex_lock (&ping_lock);
memset (&ping_thread_id, 0, sizeof (ping_thread_id));
ping_thread_error = 0;
+ pthread_mutex_unlock (&ping_lock);
return (status);
} /* }}} int stop_thread */