diff options
author | Omar Polo <op@omarpolo.com> | 2021-09-24 08:12:40 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-09-24 08:12:40 +0000 |
commit | e15fc9573666054bdff5feecf8b2b130ca00cc76 (patch) | |
tree | 090cebe98470500ae418311523b9a77e8deac88b /iri.c | |
parent | 81e0f0007842bc82fe234ffe4e5e0ce362b3a280 (diff) |
change struct initialization
makes more explicit which fields we're setting.
(and kill an extra empty line)
Diffstat (limited to 'iri.c')
-rw-r--r-- | iri.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) { |