diff options
author | antirez <antirez@gmail.com> | 2019-09-04 13:01:07 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2019-09-04 13:01:07 +0200 |
commit | b2e10131c09bdb166fc5c1dd6f510042644a6adc (patch) | |
tree | 52e6ac72f204d8fefb3987d324718f0653357e9a /src/rio.h | |
parent | 06d490342f51cff316588a7a45124cc410b7d050 (diff) | |
download | redis-b2e10131c09bdb166fc5c1dd6f510042644a6adc.tar.gz |
Rio: fix flag name, function is never used btw.
Thanks to @tnclong for reporting the problem.
Diffstat (limited to 'src/rio.h')
-rw-r--r-- | src/rio.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -150,7 +150,7 @@ static inline int rioGetReadError(rio *r) { /* Like rioGetReadError() but for write errors. */ static inline int rioGetWriteError(rio *r) { - return (r->flags & RIO_FLAG_READ_ERROR) != 0; + return (r->flags & RIO_FLAG_WRITE_ERROR) != 0; } static inline void rioClearErrors(rio *r) { |