From 87f70c18131514316b55f5c22e67dfcd993faf38 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch
Date: Sun, 24 Jun 2018 05:10:23 +0200 Subject: Bump liberty --- plugins/http.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/http.c') diff --git a/plugins/http.c b/plugins/http.c index cab4246..a38d154 100644 --- a/plugins/http.c +++ b/plugins/http.c @@ -102,8 +102,7 @@ scan_init (struct service *service, struct unit *u) { (void) service; - struct str hello; - str_init (&hello); + struct str hello = str_make (); str_append_printf (&hello, "GET / HTTP/1.0\r\n" "Host: %s\r\n\r\n", g_data.api->unit_get_address (u)); g_data.api->unit_write (u, hello.str, hello.len); @@ -114,8 +113,8 @@ scan_init (struct service *service, struct unit *u) scan->parser.data = scan; scan->state = STATE_FIELD; - str_init (&scan->field); - str_init (&scan->value); + scan->field = str_make (); + scan->value = str_make (); scan->u = u; return scan; -- cgit v1.2.3-70-g09d2