cgit

commit 42e7a169e8b7212847404730b781131759abd877

Author: Lars Hjemli <hjemli@gmail.com>

shared.c: initialize cgit_repo structs properly

Signed-off-by: Lars Hjemli <hjemli@gmail.com>

 shared.c | 1 +


diff --git a/shared.c b/shared.c
index 9475581b2c4a20d73b639223156b8a7afbd5b5ca..d7b2d5a9efe777acc8140ae9401b9c9d17a5fd79 100644
--- a/shared.c
+++ b/shared.c
@@ -48,6 +48,7 @@ 					       sizeof(struct cgit_repo));
 	}
 
 	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;