From dc11a6e173863dafc99d85086fa0eff99ea4351a Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:28:27 +0200 Subject: [PATCH] zookeeper plugin: remove useless initialization [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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/zookeeper.c b/src/zookeeper.c index 1eed1fb3..89ec6d26 100644 --- 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(); -- 2.30.2