style: add missing braces to if blocks in lib_ccx.c (#2147 follow-up) (#2197)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Carlos Fernandez Sanz
2026-03-12 18:56:52 -07:00
committed by GitHub
parent 58a8ded621
commit 0f41b70a6e

View File

@@ -450,7 +450,9 @@ struct encoder_ctx *update_encoder_list_cinfo(struct lib_ccx_ctx *ctx, struct ca
enc_ctx = init_encoder(&local_cfg);
freep(&local_cfg.output_filename); // safely free the malloc'd string
if (!enc_ctx)
{
return NULL;
}
list_add_tail(&(enc_ctx->list), &(ctx->enc_ctx_head));
}
if (list_empty(&ctx->enc_ctx_head))
@@ -459,7 +461,9 @@ struct encoder_ctx *update_encoder_list_cinfo(struct lib_ccx_ctx *ctx, struct ca
ccx_options.enc_cfg.in_format = in_format;
enc_ctx = init_encoder(&ccx_options.enc_cfg);
if (!enc_ctx)
{
return NULL;
}
list_add_tail(&(enc_ctx->list), &(ctx->enc_ctx_head));
}
}