Skip to content

Commit ab34c0e

Browse files
cosmo0920edsiper
authored andcommitted
bin: Add NULL checks
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent bf74f1d commit ab34c0e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/fluent-bit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,8 @@ static int flb_main_run(int argc, char **argv)
14921492
#ifdef FLB_SYSTEM_WINDOWS
14931493
flb_console_handler_set_ctx(ctx, cf_opts);
14941494
#endif
1495-
if (dump_requested) {
1495+
if (dump_requested &&
1496+
ctx != NULL && ctx->config != NULL) {
14961497
dump_requested = 0;
14971498
flb_dump(ctx->config);
14981499
}

0 commit comments

Comments
 (0)