aboutsummaryrefslogtreecommitdiffstats
path: root/community/libstaroffice/fix-maybe-uninitialized.patch
blob: b4f1ec9385a4b2621cc81ce3d2b69d3df8dcb77b (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/lib/StarGraphicStruct.cxx
+++ b/src/lib/StarGraphicStruct.cxx
@@ -152,7 +152,7 @@
 {
   if (!pattern) return false;
   STOFFVec2i sz(8,8);
-  unsigned tmpBufferPosition, tmpDIBFileSize;
+  unsigned tmpBufferPosition, tmpDIBFileSize = 0;
   auto tmpDIBBuffer=createAndInitBMPData(sz, tmpDIBFileSize, tmpBufferPosition);
   if (!tmpDIBBuffer) return false;