diff options
Diffstat (limited to 'ui-plain.c')
| -rw-r--r-- | ui-plain.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -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); |
