diff options
Diffstat (limited to 'libevent-example.c')
-rw-r--r-- | libevent-example.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libevent-example.c b/libevent-example.c index ef68674..9c82850 100644 --- a/libevent-example.c +++ b/libevent-example.c @@ -5,6 +5,7 @@ #include <signal.h> void getCallback(redisContext *c, redisReply *reply, void *privdata) { + if (reply == NULL) return; /* Error */ printf("argv[%s]: %s\n", (const char*)privdata, reply->reply); /* Disconnect after receiving the reply to GET */ |