From 57d0d0adba61856956191554a9624334f083c2f6 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Sun, 31 Jan 2021 11:50:01 +0000 Subject: [PATCH] ensure iri.host isn't NULL --- iri.c | 1 + 1 file changed, 1 insertion(+) 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;