diff options
-rw-r--r-- | src/estream.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/estream.c b/src/estream.c index 58d5d03..045182b 100644 --- a/src/estream.c +++ b/src/estream.c @@ -1886,7 +1886,8 @@ es_flush (estream_t stream) if (! func_write) { - err = EOPNOTSUPP; + _set_errno (EOPNOTSUPP); + err = -1; goto out; } @@ -2555,7 +2556,8 @@ es_write_nbf (estream_t _GPGRT__RESTRICT stream, if (bytes_to_write && (! func_write)) { - err = EOPNOTSUPP; + _set_errno (EOPNOTSUPP); + err = -1; goto out; } |