提交 8a5fdf0c 编写于 作者: J Jerry Jacobs

test.c: Fix shadowed name with typedef when compiling with -Wshadow

上级 1b8ed388
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册