summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
authornot-a-robot[bot] <not-a-robot[bot]@users.noreply.github.com>2017-07-15 14:50:49 +0000
committernot-a-robot[bot] <not-a-robot[bot]@users.noreply.github.com>2017-07-15 14:50:49 +0000
commit97d611e9b58ea5d26a203aafe5a586a00d1e380c (patch)
treeebbede1630435cd68656c64e87decc2282f1c111 /hiredis.c
parent74be165c8402739d329954ece50b1c4cfe9d1e16 (diff)
parent3c32344a41b1c9a7d6daccc2c54cf70b4dfd4d5b (diff)
Merge #533
533: Small fixes r=badboy
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hiredis.c b/hiredis.c
index 18bdfc9..3a7ab11 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -1007,9 +1007,8 @@ void *redisvCommand(redisContext *c, const char *format, va_list ap) {
void *redisCommand(redisContext *c, const char *format, ...) {
va_list ap;
- void *reply = NULL;
va_start(ap,format);
- reply = redisvCommand(c,format,ap);
+ void *reply = redisvCommand(c,format,ap);
va_end(ap);
return reply;
}