Rio: fix flag name, function is never used btw.

Thanks to @tnclong for reporting the problem.
This commit is contained in:
antirez 2019-09-04 13:01:07 +02:00
parent 06d490342f
commit b2e10131c0

View File

@ -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) {