From 0f41b70a6e24005b20ec26c337b2c439e0d1e8fa Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Sanz Date: Thu, 12 Mar 2026 18:56:52 -0700 Subject: [PATCH] style: add missing braces to if blocks in lib_ccx.c (#2147 follow-up) (#2197) Co-authored-by: Claude Opus 4.6 (1M context) --- src/lib_ccx/lib_ccx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib_ccx/lib_ccx.c b/src/lib_ccx/lib_ccx.c index bf5ba0ce..3f1e4e37 100644 --- a/src/lib_ccx/lib_ccx.c +++ b/src/lib_ccx/lib_ccx.c @@ -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)); } }