From c4b279eed512367c8e8c6bd21f0eecf02a59cd65 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 13 Sep 2009 12:15:04 +0000 Subject: [PATCH] Fixed two uninitialized reads on startup ({m_,}isShown) svn path=/trunk/KDE/kdebase/workspace/; revision=1022869 --- tabbox.cpp | 1 + tabbox/tabboxhandler.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/tabbox.cpp b/tabbox.cpp index 6970edf521..b9867f044b 100644 --- a/tabbox.cpp +++ b/tabbox.cpp @@ -220,6 +220,7 @@ TabBox::TabBox( Workspace *ws ) , wspace(ws) , display_refcount( 0 ) { + m_isShown = false; m_defaultConfig = TabBoxConfig(); m_defaultConfig.setTabBoxMode( TabBoxConfig::ClientTabBox ); m_defaultConfig.setClientListMode( TabBoxConfig::CurrentDesktopClientList ); diff --git a/tabbox/tabboxhandler.cpp b/tabbox/tabboxhandler.cpp index 4e1eca01c0..d9d0c3a4bc 100644 --- a/tabbox/tabboxhandler.cpp +++ b/tabbox/tabboxhandler.cpp @@ -91,6 +91,7 @@ class TabBoxHandlerPrivate TabBoxHandlerPrivate::TabBoxHandlerPrivate() { + isShown = false; config = TabBoxConfig(); view = new TabBoxView(); XSetWindowAttributes attr;