← Commit list

28ebaf86ce

x2018
x2018
2025-10-23
SUCCESS Duration: 156s

Subject

cw-out: unify the error handling pattern in cw_out_do_write

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/cw-out.c+1 -1
@@ -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;