summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGavin Hurlbut <ghurlbut@mythtv.org>2010-11-19 03:29:21 (GMT)
committer Gavin Hurlbut <ghurlbut@mythtv.org>2010-11-19 03:29:21 (GMT)
commitcdfebeb190b99dba36dcb7fd32af3bd483a2e1a7 (patch)
treee15c6c6991651cfdb58cdea6ad5d3b1497e819f8
parentc00ce6cea4b2227d753ee42b9a5e76c23f437757 (diff)
Fix an uninitialized data item in mythuibuttonlist that can end up being used
unintialized in an if at the bottom of the routine. Thank you valgrind for finding this. git-svn-id: http://svn.mythtv.org/svn/trunk@27296 7dbf422c-18fa-0310-86e9-fd20926502f2
-rw-r--r--mythtv/libs/libmythui/mythuibuttonlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/libs/libmythui/mythuibuttonlist.cpp b/mythtv/libs/libmythui/mythuibuttonlist.cpp
index b5b78f5..70999ad 100644
--- a/mythtv/libs/libmythui/mythuibuttonlist.cpp
+++ b/mythtv/libs/libmythui/mythuibuttonlist.cpp
@@ -265,7 +265,7 @@ bool MythUIButtonList::DistributeRow(int & first_button, int & last_button,
int max_width, max_height;
int left_width, right_width;
int begin, end;
- bool underflow;
+ bool underflow = false; // keep from being uninitialized
bool added;
bool hsplit, vsplit;
int selectedIdx;