Commit b2e10131 authored by antirez's avatar antirez
Browse files

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

Thanks to @tnclong for reporting the problem.
parent 06d49034
...@@ -150,7 +150,7 @@ static inline int rioGetReadError(rio *r) { ...@@ -150,7 +150,7 @@ static inline int rioGetReadError(rio *r) {
/* Like rioGetReadError() but for write errors. */ /* Like rioGetReadError() but for write errors. */
static inline int rioGetWriteError(rio *r) { 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) { static inline void rioClearErrors(rio *r) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment