mirror of https://github.com/omar-polo/gmid.git
ensure iri.host isn't NULL
This commit is contained in:
parent
ee29b5a63b
commit
57d0d0adba
1
iri.c
1
iri.c
|
@ -350,6 +350,7 @@ parse_iri(char *iri, struct iri *ret, const char **err_ret)
|
||||||
|
|
||||||
/* initialize optional stuff to the empty string */
|
/* initialize optional stuff to the empty string */
|
||||||
end = iri + strlen(iri);
|
end = iri + strlen(iri);
|
||||||
|
p.parsed->host = end;
|
||||||
p.parsed->port = end;
|
p.parsed->port = end;
|
||||||
p.parsed->path = end;
|
p.parsed->path = end;
|
||||||
p.parsed->query = end;
|
p.parsed->query = end;
|
||||||
|
|
Loading…
Reference in New Issue