all repos — cgit @ 42e7a169e8b7212847404730b781131759abd877

a hyperfast web frontend for git written in c

shared.c: initialize cgit_repo structs properly

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Aug 2009 10:14:02 +0200
commit

42e7a169e8b7212847404730b781131759abd877

parent

2273c2c821bfc77d492d7e97ae38f162d7fc91aa

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M shared.cshared.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;