summaryrefslogtreecommitdiff
path: root/vcl/source/opengl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-05-29 21:15:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-05-29 22:44:27 +0100
commit6f5a6d1668e0a0a9db9099a17bde769f128ef0ed (patch)
tree2a3501b82146f2571521d487b4ea879a7e5cff31 /vcl/source/opengl
parentfe4e6a9b104173ba7310ff481fcf931d1d6f8601 (diff)
coverity#1362019 Uninitialized scalar variable
Change-Id: I18d913fc6e0131f0c31c9d0cfe0f39e1161035eb
Diffstat (limited to 'vcl/source/opengl')
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index ea9053706c44..3503017410f9 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -412,6 +412,7 @@ void OpenGLContext::reset()
SystemWindowData OpenGLContext::generateWinData(vcl::Window* /*pParent*/, bool /*bRequestLegacyContext*/)
{
SystemWindowData aWinData;
+ memset(&aWinData, 0, sizeof(aWinData));
aWinData.nSize = sizeof(aWinData);
return aWinData;
}