X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/e7af002d5c405c82652f739d08ced3908d1f57e7..27479ac54c99584612f7246c9456119e88621eaa:/shared.c diff --git a/shared.c b/shared.c index 9475581..d7b2d5a 100644 --- a/shared.c +++ b/shared.c @@ -48,6 +48,7 @@ struct cgit_repo *cgit_add_repo(const char *url) } ret = &cgit_repolist.repos[cgit_repolist.count-1]; + memset(ret, 0, sizeof(struct cgit_repo)); ret->url = trim_end(url, '/'); ret->name = ret->url; ret->path = NULL;