fix: allow 0-byte files when creating torrents (#2698)

Fixes #1453.
This commit is contained in:
Charles Kerr 2022-02-23 21:16:51 -06:00 committed by GitHub
parent 80ab910cbd
commit c1c1f7ac00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ static struct FileList* getFiles(char const* dir, char const* base, struct FileL
tr_sys_dir_close(odir, nullptr);
}
else if (info.type == TR_SYS_PATH_IS_FILE && info.size > 0)
else if (info.type == TR_SYS_PATH_IS_FILE)
{
auto* const node = tr_new0(FileList, 1);
node->size = info.size;