Skip to content

Commit ed3cad6

Browse files
Leonardo Alminanaedsiper
authored andcommitted
http_common: added missing initializers
Signed-off-by: Leonardo Alminana <[email protected]>
1 parent bbfda1e commit ed3cad6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/flb_http_common.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,15 @@ int flb_http_request_set_url(struct flb_http_request *request,
527527
return -1;
528528
}
529529

530+
start_of_authorization = NULL;
531+
start_of_query_string = NULL;
532+
start_of_authority = NULL;
533+
start_of_username = NULL;
534+
start_of_password = NULL;
535+
start_of_port = NULL;
536+
start_of_host = NULL;
537+
start_of_path = NULL;
538+
530539
start_of_authority = &start_of_authority[3];
531540

532541
start_of_path = strstr(start_of_authority, "/");

0 commit comments

Comments
 (0)