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 2e1e170aad
commit 9658ff71bf

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