summaryrefslogtreecommitdiff
path: root/lib/sqfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-27 18:22:49 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-28 16:33:57 +0200
commit6c95b2041e8f0d107db2fab0391bff8ce637d01f (patch)
treeda84ba2f4fb6882a2ddd600688c5fb444b3b6da1 /lib/sqfs
parent3a795ed32935968218ce6feb8ab2459e8c215ee8 (diff)
Fix: return the correct value from data_reader_create
Cut & paste misshap after mergining with fragment reader: If there are no fragments, data_reader_create should return the data reader, not 0! Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs')
-rw-r--r--lib/sqfs/data_reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/data_reader.c b/lib/sqfs/data_reader.c
index a7d605e..780a2a6 100644
--- a/lib/sqfs/data_reader.c
+++ b/lib/sqfs/data_reader.c
@@ -47,7 +47,7 @@ data_reader_t *data_reader_create(int fd, sqfs_super_t *super,
if (super->fragment_entry_count == 0 ||
(super->flags & SQFS_FLAG_NO_FRAGMENTS) != 0) {
- return 0;
+ return data;
}
if (super->fragment_table_start >= super->bytes_used) {