summaryrefslogtreecommitdiff
path: root/src/rio.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-09-04 13:01:07 +0200
committerantirez <antirez@gmail.com>2019-09-04 13:01:07 +0200
commitb2e10131c09bdb166fc5c1dd6f510042644a6adc (patch)
tree52e6ac72f204d8fefb3987d324718f0653357e9a /src/rio.h
parent06d490342f51cff316588a7a45124cc410b7d050 (diff)
downloadredis-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rio.h b/src/rio.h
index 6199bb039..eb7a05748 100644
--- a/src/rio.h
+++ b/src/rio.h
@@ -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) {