Skip to content

Commit

Permalink
http_common: added missing initializers
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich authored and edsiper committed Nov 19, 2024
1 parent bbfda1e commit ed3cad6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/flb_http_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, "/");
Expand Down

0 comments on commit ed3cad6

Please sign in to comment.