From 26e3c21757651c7f96749e5ec327730ec7fbd11d Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Tue, 10 Feb 2015 17:21:20 +0100 Subject: [PATCH] Avoid comparing unintialised variable if BREEZE_HAVE_KSTYLE is not set if BREEZE_HAVE_KSTYLE is not set CE_CapacityBar remains uninitialised (random value). It should therefore not be used in any comparisons. For KDE4, BREEZE_HAVE_KSTYLE will always be false regardless so that behaviour remains the same --- kstyle/breezestyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index 78742512..818eaec5 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -807,7 +807,7 @@ namespace Breeze StyleControl fcn( nullptr ); - #if !BREEZE_USE_KDE4 + #if BREEZE_HAVE_KSTYLE if( element == CE_CapacityBar ) { fcn = &Style::drawProgressBarControl;