change struct initialization

makes more explicit which fields we're setting.

(and kill an extra empty line)
This commit is contained in:
Omar Polo 2021-09-24 08:12:40 +00:00
parent 81e0f00078
commit e15fc95736
1 changed files with 5 additions and 2 deletions

7
iri.c
View File

@ -390,7 +390,11 @@ int
parse_iri(char *iri, struct iri *ret, const char **err_ret)
{
char *end;
struct parser p = {iri, ret, NULL};
struct parser p = {
.iri = iri,
.parsed = ret,
.err = NULL,
};
memset(ret, 0, sizeof(*ret));
@ -424,7 +428,6 @@ trim_req_iri(char *iri, const char **err)
return 1;
}
int
serialize_iri(struct iri *i, char *buf, size_t len)
{