From 70b8c095f82ba1e26c07638fcf1357cb14d3a691 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 9 Mar 2020 09:08:07 +0100 Subject: [PATCH] contrib/win_dib/tiff2dib: fix Uninitialized variable: lpBits fixes #52 http://bugzilla.maptools.org/show_bug.cgi?id=2469 --- contrib/win_dib/tiff2dib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/win_dib/tiff2dib.c b/contrib/win_dib/tiff2dib.c index 475ef304..2fa2de69 100644 --- a/contrib/win_dib/tiff2dib.c +++ b/contrib/win_dib/tiff2dib.c @@ -106,6 +106,8 @@ HDIB LoadTIFFinDIB(LPSTR lpFileName) if (lpDIB) lpBits = FindDIBBits((LPSTR) lpDIB); + else + lpBits = NULL; //In the tiff file the lines are save from up to down //In a DIB the lines must be save from down to up