From 45bf9f2658275c80d75e60e8a767178a6bb63387 Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Thu, 12 Oct 2006 14:21:42 +0000 Subject: Allow empty files in torrents. Create them in stat_and_adjust and let the stream abstraction skip past them. --- misc/metainfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/metainfo.c') 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; -- cgit 1.4.1