diff options
| -rw-r--r-- | async.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| @@ -142,6 +142,9 @@ static redisAsyncContext *redisAsyncInitialize(redisContext *c) {  /* We want the error field to be accessible directly instead of requiring   * an indirection to the redisContext struct. */  static void __redisAsyncCopyError(redisAsyncContext *ac) { +    if (!ac) +        return; +      redisContext *c = &(ac->c);      ac->err = c->err;      ac->errstr = c->errstr; | 
