From 8a5fdf0c9eeefa7bdaac3af9ae21018ad9c2c23d Mon Sep 17 00:00:00 2001 From: Jerry Jacobs Date: Sun, 17 Apr 2016 20:33:59 +0000 Subject: test.c: Fix shadowed name with typedef when compiling with -Wshadow --- test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.c b/test.c index d5e8217..79148fd 100644 --- a/test.c +++ b/test.c @@ -328,12 +328,12 @@ static void test_reply_reader(void) { } static void test_free_null(void) { - void *redisContext = NULL; + void *redisCtx = NULL; void *reply = NULL; test("Don't fail when redisFree is passed a NULL value: "); - redisFree(redisContext); - test_cond(redisContext == NULL); + redisFree(redisCtx); + test_cond(redisCtx == NULL); test("Don't fail when freeReplyObject is passed a NULL value: "); freeReplyObject(reply); -- cgit v1.2.3