Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Gavin Hurlbut Beirdo authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  mythtv/libs/libmythui/mythuibuttonlist.cpp
2  mythtv/libs/libmythui/mythuibuttonlist.cpp
@@ -265,7 +265,7 @@ bool MythUIButtonList::DistributeRow(int & first_button, int & last_button,
265 265 int max_width, max_height;
266 266 int left_width, right_width;
267 267 int begin, end;
268   - bool underflow;
  268 + bool underflow = false; // keep from being uninitialized
269 269 bool added;
270 270 bool hsplit, vsplit;
271 271 int selectedIdx;

0 comments on commit cdfebeb

Please sign in to comment.
Something went wrong with that request. Please try again.