Valgrind detected a value tested, not initialized

This commit is contained in:
Bertrand Songis
2014-02-19 15:22:36 +01:00
parent 197c008937
commit 59af2e2719
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
/.project /.*project
/.settings /.settings
+2 -2
View File
@@ -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 realPgOfs = s_pgOfs;
vertpos_t realMaxrow = maxrow; vertpos_t realMaxrow = maxrow;
for (vertpos_t i=1; i<=maxrow; i++) { for (vertpos_t i=1; i<=maxrow; i++) {
if (horTab[i] == HIDDEN_ROW) { if (MAXCOL_RAW(i) == HIDDEN_ROW) {
realMaxrow--; realMaxrow--;
if (i < l_posVert) if (i < l_posVert)
realPosVert--; realPosVert--;
@@ -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; else if (realPosVert<1+realPgOfs) realPgOfs = realPosVert-1;
s_pgOfs = realPgOfs; s_pgOfs = realPgOfs;
for (vertpos_t i=1; i<=realPgOfs; i++) { for (vertpos_t i=1; i<=realPgOfs; i++) {
if (horTab[i] == HIDDEN_ROW) { if (MAXCOL_RAW(i) == HIDDEN_ROW) {
s_pgOfs++; s_pgOfs++;
} }
} }