diff options
author | Jerry Jacobs <jerry.jacobs@xor-gate.org> | 2016-04-17 20:33:59 +0000 |
---|---|---|
committer | Jerry Jacobs <jerry.jacobs@xor-gate.org> | 2016-04-17 20:33:59 +0000 |
commit | 8a5fdf0c9eeefa7bdaac3af9ae21018ad9c2c23d (patch) | |
tree | 2b53b6de094d63613af6850e3bfe5a06af0a0daa | |
parent | 1b8ed38843319e17c54021a3b2a9b496159ebdcb (diff) |
test.c: Fix shadowed name with typedef when compiling with -Wshadow
-rw-r--r-- | test.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |