summaryrefslogtreecommitdiff
path: root/third_party/libtiff/0007-uninitialized-value.patch
blob: f6e9806181c2247369197b2c6b574fe5fd6ca70e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/third_party/libtiff/tif_dirread.c b/third_party/libtiff/tif_dirread.c
index 5ef3264..bc41021 100644
--- a/third_party/libtiff/tif_dirread.c
+++ b/third_party/libtiff/tif_dirread.c
@@ -4443,7 +4443,7 @@ TIFFFetchDirectory(TIFF* tif, uint64 diroff, TIFFDirEntry** pdir,
 	static const char module[] = "TIFFFetchDirectory";
 
 	void* origdir;
-	uint16 dircount16;
+	uint16 dircount16 = 0;
 	uint32 dirsize;
 	TIFFDirEntry* dir;
 	uint8* ma;