[Xfce4-commits] [apps/xfdashboard] 01/01: Fix warning of scan-build about garbage values at _xfdashboard_label_get_preferred_(width|height), i.e. use of uninitialized variables
noreply at xfce.org
noreply at xfce.org
Tue Feb 14 07:04:53 CET 2017
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to branch master
in repository apps/xfdashboard.
commit 19320d496d0914319f10cb6f8d03a0ebb3c157cf
Author: Stephan Haller <nomad at froevel.de>
Date: Tue Feb 14 07:03:53 2017 +0100
Fix warning of scan-build about garbage values at _xfdashboard_label_get_preferred_(width|height), i.e. use of uninitialized variables
---
libxfdashboard/label.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libxfdashboard/label.c b/libxfdashboard/label.c
index e5ebc70..058ac8e 100644
--- a/libxfdashboard/label.c
+++ b/libxfdashboard/label.c
@@ -742,6 +742,8 @@ static void _xfdashboard_label_get_preferred_height(ClutterActor *inActor,
/* Initialize sizes */
minHeight=naturalHeight=0.0f;
+ minIconHeight=naturalIconHeight=0.0f;
+ minLabelHeight=naturalLabelHeight=0.0f;
/* Calculate sizes for requested one (means which can and will be stored) */
if(outMinHeight)
@@ -816,6 +818,8 @@ static void _xfdashboard_label_get_preferred_width(ClutterActor *inActor,
/* Initialize sizes */
minWidth=naturalWidth=0.0f;
+ minIconWidth=naturalIconWidth=0.0f;
+ minLabelWidth=naturalLabelWidth=0.0f;
/* Calculate sizes for requested one (means which can and will be stored) */
if(outMinWidth)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list