Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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: http://svn.mythtv.org/svn/trunk@27296 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
commit cdfebeb190b99dba36dcb7fd32af3bd483a2e1a7 1 parent c00ce6c
@Beirdo Beirdo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mythtv/libs/libmythui/mythuibuttonlist.cpp
View
2  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;
Please sign in to comment.
Something went wrong with that request. Please try again.