From b2e10131c09bdb166fc5c1dd6f510042644a6adc Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 4 Sep 2019 13:01:07 +0200 Subject: [PATCH] Rio: fix flag name, function is never used btw. Thanks to @tnclong for reporting the problem. --- src/rio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {