Commit bea6c097 bea6c0971e862ec61a9b0560545dfe49c11282c3 by Alain Magloire

A little bug fix in stream.c

1 parent 18779916
...@@ -405,7 +405,8 @@ stream_write (stream_t os, const char *buf, size_t count, ...@@ -405,7 +405,8 @@ stream_write (stream_t os, const char *buf, size_t count,
405 } 405 }
406 if (pnwrite) 406 if (pnwrite)
407 *pnwrite = total; 407 *pnwrite = total;
408 return err; 408 /* If we have someting in the buffer propagate the error on the next call. */
409 return (total) ? 0 : err;
409 } 410 }
410 411
411 int 412 int
......