From 42e7a169e8b7212847404730b781131759abd877 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 24 Aug 2009 10:14:02 +0200 Subject: shared.c: initialize cgit_repo structs properly Signed-off-by: Lars Hjemli --- shared.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3-57-g22cb