From d0fdcd20717c5093e45615f352fd8f501d757b0a Mon Sep 17 00:00:00 2001 From: Wesley Pettit Date: Mon, 5 Oct 2020 22:20:36 -0700 Subject: [PATCH] out_s3: fix build failure Signed-off-by: Wesley Pettit --- plugins/out_s3/s3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/out_s3/s3.c b/plugins/out_s3/s3.c index 9318f249763..624b9c88930 100644 --- a/plugins/out_s3/s3.c +++ b/plugins/out_s3/s3.c @@ -286,7 +286,7 @@ static int cb_s3_init(struct flb_output_instance *ins, ret = flb_pack_to_json_date_type(tmp); if (ret == -1) { flb_plg_error(ctx->ins, "invalid json_date_format '%s'. ", tmp); - goto error; + return -1; } else { ctx->json_date_format = ret;