From: Ruben Kerkhof Date: Sat, 23 Apr 2016 08:28:27 +0000 (+0200) Subject: zookeeper plugin: remove useless initialization X-Git-Tag: collectd-5.6.0~329^2~43 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dc11a6e173863dafc99d85086fa0eff99ea4351a;p=collectd.git 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. --- 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();