aboutsummaryrefslogtreecommitdiffstats
path: root/ui-plain.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-plain.c')
-rw-r--r--ui-plain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui-plain.c b/ui-plain.c
index 4c73607..e4beb99 100644
--- a/ui-plain.c
+++ b/ui-plain.c
@@ -84,8 +84,10 @@ static void print_dir(const unsigned char *sha1, const char *base,
84 slash = strrchr(fullpath, '/'); 84 slash = strrchr(fullpath, '/');
85 if (slash) 85 if (slash)
86 *(slash + 1) = 0; 86 *(slash + 1) = 0;
87 else 87 else {
88 free(fullpath);
88 fullpath = NULL; 89 fullpath = NULL;
90 }
89 html("<li>"); 91 html("<li>");
90 cgit_plain_link("../", NULL, NULL, ctx.qry.head, ctx.qry.sha1, 92 cgit_plain_link("../", NULL, NULL, ctx.qry.head, ctx.qry.sha1,
91 fullpath); 93 fullpath);