diff options
author | Jan-Erik Rediger <badboy@archlinux.us> | 2017-06-16 08:42:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-16 08:42:17 +0200 |
commit | 4d8f3fb207aa63a44999f78bc089a19c846eb9a9 (patch) | |
tree | 9e9dcabba3cc50e877c5224c57af16d728d90123 /async.c | |
parent | 97cd8157f74674c722dd30360caac1f498fa72ef (diff) | |
parent | b46413647fa0be35273b787bab687458e28dc584 (diff) |
Merge pull request #532 from amallia/assert-side-effects
Assert statement calls a function which has side effects
Diffstat (limited to 'async.c')
-rw-r--r-- | async.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -336,7 +336,8 @@ static void __redisAsyncDisconnect(redisAsyncContext *ac) { if (ac->err == 0) { /* For clean disconnects, there should be no pending callbacks. */ - assert(__redisShiftCallback(&ac->replies,NULL) == REDIS_ERR); + int ret = __redisShiftCallback(&ac->replies,NULL); + assert(ret == REDIS_ERR); } else { /* Disconnection is caused by an error, make sure that pending * callbacks cannot call new commands. */ |