Skip to content

Commit

Permalink
Valgrind detected a value tested, not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
bsongis committed Feb 19, 2014
1 parent 197c008 commit 59af2e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/.project
/.*project
/.settings
4 changes: 2 additions & 2 deletions radio/src/gui/menus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ bool check(check_event_t event, uint8_t curr, const MenuFuncP *menuTab, uint8_t
vertpos_t realPgOfs = s_pgOfs;
vertpos_t realMaxrow = maxrow;
for (vertpos_t i=1; i<=maxrow; i++) {
if (horTab[i] == HIDDEN_ROW) {
if (MAXCOL_RAW(i) == HIDDEN_ROW) {
realMaxrow--;
if (i < l_posVert)
realPosVert--;
Expand All @@ -790,7 +790,7 @@ bool check(check_event_t event, uint8_t curr, const MenuFuncP *menuTab, uint8_t
else if (realPosVert<1+realPgOfs) realPgOfs = realPosVert-1;
s_pgOfs = realPgOfs;
for (vertpos_t i=1; i<=realPgOfs; i++) {
if (horTab[i] == HIDDEN_ROW) {
if (MAXCOL_RAW(i) == HIDDEN_ROW) {
s_pgOfs++;
}
}
Expand Down

0 comments on commit 59af2e2

Please sign in to comment.