| commit | 5bc002e424537610b470b00d9d4f82bb194e6b0e | [log] [tgz] |
|---|---|---|
| author | Andy Green <andy.green@linaro.org> | Tue Apr 01 09:59:23 2014 +0800 |
| committer | Andy Green <andy.green@linaro.org> | Tue Apr 01 09:59:39 2014 +0800 |
| tree | 126957a5c48cc5fb6549597e804e6fe51ece771a | |
| parent | 4dd338590eef40dbcc1a49b1a567f383fdaed1f7 [diff] [blame] |
only use clean buffer for failed write if sent something Signed-off-by: Andy Green <andy.green@linaro.org>
diff --git a/lib/output.c b/lib/output.c index 6924566..f711f2a 100644 --- a/lib/output.c +++ b/lib/output.c
@@ -218,7 +218,7 @@ } if (n < real_len) { - if (wsi->u.ws.clean_buffer) + if (n && wsi->u.ws.clean_buffer) /* * This buffer unaffected by extension rewriting. * It means the user code is expected to deal with