mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Avoid checking for deleted entries (starting with '-') in index_gc().
This commit is contained in:
parent
98d49bab25
commit
0a6a3a0a9a
1 changed files with 1 additions and 1 deletions
2
data.c
2
data.c
|
@ -391,7 +391,7 @@ int index_gc(const char *fn)
|
|||
while (fgets(line, sizeof(line), i) != NULL) {
|
||||
line[32] = '\0';
|
||||
|
||||
if (object_here_by_md5(line))
|
||||
if (line[0] != '-' && object_here_by_md5(line))
|
||||
fprintf(o, "%s\n", line);
|
||||
else
|
||||
gc++;
|
||||
|
|
Loading…
Reference in a new issue