Browse files

Fix an uninitialized data item in mythuibuttonlist that can end up be…

…ing used

unintialized in an if at the bottom of the routine.  Thank you valgrind for
finding this.

git-svn-id: 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
1 parent c00ce6c commit cdfebeb190b99dba36dcb7fd32af3bd483a2e1a7 @Beirdo Beirdo committed Nov 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit cdfebeb

Please sign in to comment.