summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2016-12-02 12:53:52 +0100
committerJohan Helsing <johan.helsing@qt.io>2016-12-09 10:28:48 +0000
commit391c71b4488d69f3a0b16171b01f569fbc9ec07b (patch)
tree5580cd2462c0e934af1ce0244446a7822f4983d0
parent96f3206c8cbe9cb55e1b3c9f3ae146ccbd6a0d2f (diff)
Fix potential undefined behavior
Don't leave QWaylandXdgSurfaceV5Private::m_xdgShell uninitialized. Change-Id: Ib18ebf29d3dbae020f5d48f4c81c01ed2f1c473e Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
-rw-r--r--src/compositor/extensions/qwaylandxdgshellv5.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandxdgshellv5.cpp b/src/compositor/extensions/qwaylandxdgshellv5.cpp
index fd23865cf..0a86b9f6f 100644
--- a/src/compositor/extensions/qwaylandxdgshellv5.cpp
+++ b/src/compositor/extensions/qwaylandxdgshellv5.cpp
@@ -222,6 +222,7 @@ void QWaylandXdgShellV5Private::xdg_shell_pong(Resource *resource, uint32_t seri
QWaylandXdgSurfaceV5Private::QWaylandXdgSurfaceV5Private()
: QWaylandCompositorExtensionPrivate()
, xdg_surface()
+ , m_xdgShell(nullptr)
, m_surface(nullptr)
, m_parentSurface(nullptr)
, m_windowType(UnknownWindowType)