summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2022-09-08 11:08:18 -0700
committerMichael Grunder <michael.grunder@gmail.com>2022-09-08 11:18:43 -0700
commit560e6648627cfd9bf347cffe5616d8043cbe940e (patch)
treec0a514c0fe767cbb8765fa63e86ede63056ca7d4 /test.c
parentd756f68a59d694a91c1882c782161a023ea67766 (diff)
Minor refactor
Protect against a NULL pointer dereference, and remove unused write to a variable.
Diffstat (limited to 'test.c')
-rw-r--r--test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.c b/test.c
index fe9b478..67723f2 100644
--- a/test.c
+++ b/test.c
@@ -1999,7 +1999,7 @@ static void connectCallback(redisAsyncContext *c, int status) {
}
else if (t->testno == ASTEST_ISSUE_931_PING)
{
- status = redisAsyncCommand(c, commandCallback, NULL, "PING");
+ redisAsyncCommand(c, commandCallback, NULL, "PING");
}
}
static void disconnectCallback(const redisAsyncContext *c, int status) {