summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ef9e5a8)
raw | patch | inline | side by side (parent: ef9e5a8)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 09:27:12 +0000 (11:27 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 09:27:12 +0000 (11:27 +0200) |
[src/memcached.c:176] -> [src/memcached.c:180]: (performance) Variable 'fd' is reassigned a value before the old one has been used.
src/memcached.c | patch | blob | history |
diff --git a/src/memcached.c b/src/memcached.c
index 4e7b1431ba43a23785b1699e8717c822d959f8f3..62ac72a8029dac695632d1a26a3ad40f18ffeca9 100644 (file)
--- a/src/memcached.c
+++ b/src/memcached.c
static int memcached_query_daemon (char *buffer, size_t buffer_size, memcached_t *st)
{
- int fd = -1;
- int status;
+ int fd, status;
size_t buffer_fill;
fd = memcached_connect (st);