summaryrefslogtreecommitdiff
path: root/repo/libstaroffice/fix-maybe-uninitialized.patch
diff options
context:
space:
mode:
Diffstat (limited to 'repo/libstaroffice/fix-maybe-uninitialized.patch')
-rw-r--r--repo/libstaroffice/fix-maybe-uninitialized.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/repo/libstaroffice/fix-maybe-uninitialized.patch b/repo/libstaroffice/fix-maybe-uninitialized.patch
new file mode 100644
index 0000000..b4f1ec9
--- /dev/null
+++ b/repo/libstaroffice/fix-maybe-uninitialized.patch
@@ -0,0 +1,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;
+