aboutsummaryrefslogtreecommitdiffstats
path: root/tools/squashfs3-lzma/patches/150-fix-unitialized-memory.patch
blob: ad3b8208948a6abf80c24771c817182ae53ea404 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/squashfs-tools/mksquashfs.c
+++ b/squashfs-tools/mksquashfs.c
@@ -1822,7 +1822,7 @@ int main(int argc, char *argv[])
 {
 	struct stat buf, source_buf;
 	int i;
-	squashfs_super_block sBlk;
+	squashfs_super_block sBlk = {};
 	char *b, *root_name = NULL;
 	int be, nopad = FALSE, keep_as_directory = FALSE, orig_be;
 	squashfs_inode inode;