summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-04 15:10:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-04 16:24:36 +0100
commitdcee310c8f31ab2acbd3544a3e5d7b754a456456 (patch)
tree1dfb093bf25de257bd334c56aa86cd711b9f3791 /vcl
parent64e291376f5d0efd1e11ef686fa810a6056f5cea (diff)
coverity#738942 Uninitialized scalar field
Change-Id: Icb5372e8fa8a91ae31eda551a4fa47ef8ed9cbe9
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/gdi/salbmp.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/unx/generic/gdi/salbmp.cxx b/vcl/unx/generic/gdi/salbmp.cxx
index 0b1c5bd0df6f..307b6d5aae3f 100644
--- a/vcl/unx/generic/gdi/salbmp.cxx
+++ b/vcl/unx/generic/gdi/salbmp.cxx
@@ -924,6 +924,12 @@ ImplSalDDB::ImplSalDDB(
maTwoRect.mnSrcWidth = maTwoRect.mnDestWidth = nWidth;
maTwoRect.mnSrcHeight = maTwoRect.mnDestHeight = nHeight;
}
+ else
+ {
+ maTwoRect.mnSrcX = maTwoRect.mnSrcY = maTwoRect.mnDestX = maTwoRect.mnDestY = 0;
+ maTwoRect.mnSrcWidth = maTwoRect.mnDestWidth = 0;
+ maTwoRect.mnSrcHeight = maTwoRect.mnDestHeight = 0;
+ }
}
ImplSalDDB::~ImplSalDDB()