projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8101a5c
)
zookeeper plugin: remove useless initialization
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:28:27 +0000
(10:28 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:28:27 +0000
(10:28 +0200)
[src/zookeeper.c:162] -> [src/zookeeper.c:166]: (performance) Variable 'sk' is reassigned a value before the old one has been used.
src/zookeeper.c
patch
|
blob
|
history
diff --git
a/src/zookeeper.c
b/src/zookeeper.c
index
1eed1fb
..
89ec6d2
100644
(file)
--- a/
src/zookeeper.c
+++ b/
src/zookeeper.c
@@
-159,8
+159,7
@@
static int zookeeper_connect (void)
static int zookeeper_query (char *buffer, size_t buffer_size)
{
- int sk = -1;
- int status;
+ int sk, status;
size_t buffer_fill;
sk = zookeeper_connect();