summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
authorMark Nunberg <mnunberg@haskalah.org>2019-02-12 09:30:43 -0500
committerMark Nunberg <mnunberg@haskalah.org>2019-02-20 09:11:10 -0500
commitea9f9d2515081d191507ea055cd0e614a078d914 (patch)
tree1597e2622774ef57200587f15c7acd2375bca920 /hiredis.c
parentf0a7595056d00383701fcb2a6247ea1ec91c2ae9 (diff)
fixed wrong memset args
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hiredis.c b/hiredis.c
index d28fcb9..ba8d316 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -618,7 +618,7 @@ void redisFree(redisContext *c) {
if (c->ssl) {
redisFreeSsl(c->ssl);
}
- memset(0xff, c, sizeof(*c));
+ memset(c, 0xff, sizeof(*c));
free(c);
}