Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Drop cgit_read_first_line's unread size output
Diffstat (limited to 'source/scan-tree.c')
-rw-r--r--source/scan-tree.c3
1 file changed, 1 insertion, 2 deletions
diff --git a/source/scan-tree.c b/source/scan-tree.c
index 7caa5eb..f29738c 100644
--- a/source/scan-tree.c
+++ b/source/scan-tree.c
@@ -150,7 +150,6 @@ static void add_repo(const char *base, struct strbuf *path)
size_t pathlen;
struct strbuf relpath = STRBUF_INIT;
char *comma;
- size_t desc_size;
if (stat(path->buf, &st)) {
fprintf(stderr, "[cgit] Unable to access %s: %s (%d)\n", path->buf, strerror(errno), errno);
@@ -235,7 +234,7 @@ static void add_repo(const char *base, struct strbuf *path)
if (current_repo->desc == cgit_default_repo_desc) {
strbuf_addstr(path, "description");
- cgit_read_first_line(path->buf, &current_repo->desc, &desc_size);
+ cgit_read_first_line(path->buf, &current_repo->desc);
strbuf_setlen(path, pathlen);
if (current_repo->desc && !strcmp(current_repo->desc, default_git_desc)) {
free(current_repo->desc);