From 9f456a2722a4e4d4c3ad9e21b60d814b8632bb00 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Sat, 11 Jun 2016 17:42:19 +0200 Subject: [PATCH] msys2: fixed uninitialized variable --- src/osgPlugins/zip/unzip.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/zip/unzip.cpp b/src/osgPlugins/zip/unzip.cpp index 29c87e3e9..73cae9fb4 100644 --- a/src/osgPlugins/zip/unzip.cpp +++ b/src/osgPlugins/zip/unzip.cpp @@ -2989,7 +2989,7 @@ int unzlocal_getByte(LUFILE *fin,int *pi) int unzlocal_getShort (LUFILE *fin,uLong *pX) { uLong x ; - int i; + int i = 0; int err; err = unzlocal_getByte(fin,&i); @@ -3009,7 +3009,7 @@ int unzlocal_getShort (LUFILE *fin,uLong *pX) int unzlocal_getLong (LUFILE *fin,uLong *pX) { uLong x ; - int i; + int i = 0; int err; err = unzlocal_getByte(fin,&i);