From d36f32ae9add8471e2361a03770c05bac7f9c050 Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Mon, 18 Nov 2024 14:40:14 +0100 Subject: [PATCH] http_common: added missing initializers Signed-off-by: Leonardo Alminana --- src/flb_http_common.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/flb_http_common.c b/src/flb_http_common.c index fdfdd88041c..9b3f4d51737 100644 --- a/src/flb_http_common.c +++ b/src/flb_http_common.c @@ -527,6 +527,15 @@ int flb_http_request_set_url(struct flb_http_request *request, return -1; } + start_of_authorization = NULL; + start_of_query_string = NULL; + start_of_authority = NULL; + start_of_username = NULL; + start_of_password = NULL; + start_of_port = NULL; + start_of_host = NULL; + start_of_path = NULL; + start_of_authority = &start_of_authority[3]; start_of_path = strstr(start_of_authority, "/");