diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-10-12 14:21:42 +0000 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-10-12 14:21:42 +0000 |
| commit | 45bf9f2658275c80d75e60e8a767178a6bb63387 (patch) | |
| tree | 3307d9a374f8ed93583bf0be42dbd6e8f26237db /misc/metainfo.c | |
| parent | a781e02cd892b49de1cb84b3279ce82b503c8396 (diff) | |
| download | btpd-45bf9f2658275c80d75e60e8a767178a6bb63387.tar.gz btpd-45bf9f2658275c80d75e60e8a767178a6bb63387.zip | |
Allow empty files in torrents. Create them in stat_and_adjust and let the
stream abstraction skip past them.
Diffstat (limited to 'misc/metainfo.c')
| -rw-r--r-- | misc/metainfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/metainfo.c b/misc/metainfo.c index 104b927..c69f64b 100644 --- a/misc/metainfo.c +++ b/misc/metainfo.c @@ -279,7 +279,7 @@ mi_test_files(const char *files) int pcount = 0; if (!benc_isdct(fdct)) return 0; - if (benc_dget_int(fdct, "length") <= 0) + if (benc_dget_int(fdct, "length") < 0) return 0; if ((plst = benc_dget_lst(fdct, "path")) == NULL) return 0; |