cw-out: unify the error handling pattern in cw_out_do_write
No binary (build failed)
—
(log yok)
| @@ -403,7 +403,7 @@ static CURLcode cw_out_do_write(struct cw_out_ctx *ctx, | |
| /* still have buffered data, append and flush */ | |
| result = cw_out_append(ctx, data, otype, buf, blen); | |
| if(result) | |
| - | return result; |
| + | goto out; |
| result = cw_out_flush_chain(ctx, data, &ctx->buf, flush_all); | |
| if(result) | |
| goto out; | |