summaryrefslogtreecommitdiff
path: root/example-libevent.c
diff options
context:
space:
mode:
Diffstat (limited to 'example-libevent.c')
-rw-r--r--example-libevent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/example-libevent.c b/example-libevent.c
index 101fa71..65dffe6 100644
--- a/example-libevent.c
+++ b/example-libevent.c
@@ -7,6 +7,7 @@
#include "adapters/libevent.h"
void getCallback(redisAsyncContext *c, redisReply *reply, void *privdata) {
+ if (reply == NULL) return;
printf("argv[%s]: %s\n", (char*)privdata, reply->str);
/* Disconnect after receiving the reply to GET */