Commit 86ca3ad1 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

torture_url.c: added test for parsing empty URLs.

parent b4251bb4
......@@ -214,6 +214,15 @@ int test_any(void)
TEST_S(u->url_fragment, "foo");
url_t u[1];
char b2[6] = "";
memset(u, 0xff, sizeof u);
TEST(url_d(u, b2), 0);
TEST(u->url_type, url_unknown);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment