diff options
Diffstat (limited to 'example-libev.c')
-rw-r--r-- | example-libev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/example-libev.c b/example-libev.c index 3495b2f..709c9ea 100644 --- a/example-libev.c +++ b/example-libev.c @@ -7,6 +7,7 @@ #include "adapters/libev.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 */ |