summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorJerry Jacobs <jerry.jacobs@xor-gate.org>2016-04-17 20:33:59 +0000
committerJerry Jacobs <jerry.jacobs@xor-gate.org>2016-04-17 20:33:59 +0000
commit8a5fdf0c9eeefa7bdaac3af9ae21018ad9c2c23d (patch)
tree2b53b6de094d63613af6850e3bfe5a06af0a0daa /test.c
parent1b8ed38843319e17c54021a3b2a9b496159ebdcb (diff)
test.c: Fix shadowed name with typedef when compiling with -Wshadow
Diffstat (limited to 'test.c')
-rw-r--r--test.c6
1 files 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);