diff options
-rw-r--r-- | ui-refs.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -97,9 +97,6 @@ static void print_tag_downloads(const struct cgit_repo *repo, const char *ref) | |||
97 | struct strbuf filename = STRBUF_INIT; | 97 | struct strbuf filename = STRBUF_INIT; |
98 | size_t prefixlen; | 98 | size_t prefixlen; |
99 | 99 | ||
100 | if (!ref || strlen(ref) < 1) | ||
101 | return; | ||
102 | |||
103 | basename = cgit_snapshot_prefix(repo); | 100 | basename = cgit_snapshot_prefix(repo); |
104 | if (starts_with(ref, basename)) | 101 | if (starts_with(ref, basename)) |
105 | strbuf_addstr(&filename, ref); | 102 | strbuf_addstr(&filename, ref); |