diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-08 00:51:53 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-08 00:51:53 +0200 |
commit | 7f11ef506465896705f15c39bd0416d96ca651a8 (patch) | |
tree | 81685c28e9c70447ba84ea331c5711801afbb72e | |
parent | a225b2a5376bee47fbda86c8aaa74ca7cc8a388a (diff) |
util: just zero strings by null-terminating first byte
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |