summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 6f4b04e..9b3da1b 100644
--- a/util.c
+++ b/util.c
@@ -28,7 +28,7 @@ parseuri(const char *s, struct uri *u, int rel)
const char *p = s;
size_t i;
- memset(u, 0, sizeof(struct uri));
+ u->proto[0] = u->host[0] = u->path[0] = '\0';
if (!*s)
return 0;