diff options
author | Phillip Lougher <phillip@squashfs.org.uk> | 2013-01-13 21:14:06 +0000 |
---|---|---|
committer | Phillip Lougher <phillip@squashfs.org.uk> | 2013-01-13 21:35:38 +0000 |
commit | 6046a16d7ac87f92f6d3271b74f40e971dc9132a (patch) | |
tree | 069992d6408e3dc86ac63257d8b9c6f0753ea3d1 /squashfs-tools | |
parent | efff889e556c3b3d00a83889f964419f82c0bea9 (diff) | |
download | squashfs-tools-6046a16d7ac87f92f6d3271b74f40e971dc9132a.tar.gz |
mksquashfs: ensure block_list is always initialised in write_file_blocks()
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Diffstat (limited to 'squashfs-tools')
-rw-r--r-- | squashfs-tools/mksquashfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c index 6fae018..765c681 100644 --- a/squashfs-tools/mksquashfs.c +++ b/squashfs-tools/mksquashfs.c @@ -2970,6 +2970,7 @@ int write_file_blocks(squashfs_inode *inode, struct dir_ent *dir_ent, start = bytes; for(block = 0; block < blocks;) { if(read_buffer->fragment && read_buffer->c_byte) { + block_list[block] = 0; fragment_buffer = read_buffer; blocks = read_size >> block_log; } else { |