the repository which powers this website
shared.c: initialize cgit_repo structs properly
Signed-off-by: Lars Hjemli <[email protected]>
Lars Hjemli 2009-08-24
parent 2273c2c · commit 42e7a16
-rw-r--r--shared.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index 9475581b..d7b2d5a9 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;