diff --git a/sample/https-client.c b/sample/https-client.c index fbd5de8c..38f07e9c 100644 --- a/sample/https-client.c +++ b/sample/https-client.c @@ -275,7 +275,7 @@ main(int argc, char **argv) } path = evhttp_uri_get_path(http_uri); - if (path == NULL) { + if (strlen(path) == 0) { path = "/"; }