summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8101a5c)
raw | patch | inline | side by side (parent: 8101a5c)
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 1eed1fb35d1b02281ea050cc12d9cffa250e2270..89ec6d267dd9c98f7a6a1b3d0401578e4343bd65 100644 (file)
--- a/src/zookeeper.c
+++ b/src/zookeeper.c
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();