all repos — cgit @ 523c133e2e5f7089a3d18ac23f2074b60991a7f0

a hyperfast web frontend for git written in c

Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Tue, 18 Aug 2009 17:21:52 +0200
commit

523c133e2e5f7089a3d18ac23f2074b60991a7f0

parent

73b54f7d7e21fbb15c50e21eafe1737df96b2073

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

jump to
M scan-tree.cscan-tree.c

@@ -42,6 +42,7 @@ static char buf[MAX_PATH];

if (!(f = fopen(path, "r"))) return NULL; + buf[0] = 0; fgets(buf, MAX_PATH, f); fclose(f); return buf;
M ui-repolist.cui-repolist.c

@@ -23,6 +23,7 @@ static char buf[64], buf2[64];

if (!(f = fopen(path, "r"))) return -1; + buf[0] = 0; if (fgets(buf, sizeof(buf), f) == NULL) return -1; fclose(f);