aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-31 11:50:01 +0000
committerOmar Polo <op@omarpolo.com>2021-01-31 11:50:01 +0000
commit57d0d0adba61856956191554a9624334f083c2f6 (patch)
tree1f84dd83c9472d9cbe75e6a9587cb0616427bba7
parentee29b5a63bbb03e6ff7fe1890f05caa9ccb75cff (diff)
ensure iri.host isn't NULL
-rw-r--r--iri.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iri.c b/iri.c
index c9069fb..3336b6e 100644
--- a/iri.c
+++ b/iri.c
@@ -350,6 +350,7 @@ parse_iri(char *iri, struct iri *ret, const char **err_ret)
/* initialize optional stuff to the empty string */
end = iri + strlen(iri);
+ p.parsed->host = end;
p.parsed->port = end;
p.parsed->path = end;
p.parsed->query = end;