commit 80fbf1e934ed1e2dafea65e88bb91a501f175a3b from: Omar Polo date: Wed Jun 16 15:04:42 2021 UTC make sure l is always initialized I can't think of cases where we reach serialize_iri and path is NULL, but let's keep the safe side and initialize l. gcc 8 found this, clang didn't. commit - 2d383cbd5f19052f4f4d154e0d5e4ec387b12690 commit + 80fbf1e934ed1e2dafea65e88bb91a501f175a3b blob - e1552d6b8595ba8240fe007659929e6180225ef4 blob + 64fcca2ef9ac7db0b13f285c8b579f6fc6aa0e8e --- iri.c +++ iri.c @@ -424,7 +424,7 @@ trim_req_iri(char *iri, const char **err) int serialize_iri(struct iri *i, char *buf, size_t len) { - size_t l; + size_t l = 0; /* in ex.c we receive empty "" strings as NULL */ if (i->schema == NULL || i->host == NULL) {