Skip to content

Commit 4534b3f

Browse files
Fix clang static analyzer
(cherry picked from commit 4941cfc)
1 parent eec383f commit 4534b3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib_nbgl/src/nbgl_use_case.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3017,9 +3017,9 @@ uint8_t nbgl_useCaseGetNbSwitchesInPage(uint8_t nbSwit
30173017
{
30183018
uint8_t nbSwitchesInPage = 0;
30193019
uint16_t currentHeight = 0;
3020-
uint16_t previousHeight;
3021-
uint16_t navHeight = withNav ? SIMPLE_FOOTER_HEIGHT : 0;
3022-
nbgl_contentSwitch_t *switchArray = (nbgl_contentSwitch_t *) PIC(switchesList->switches);
3020+
uint16_t previousHeight = 0;
3021+
uint16_t navHeight = withNav ? SIMPLE_FOOTER_HEIGHT : 0;
3022+
nbgl_contentSwitch_t *switchArray = (nbgl_contentSwitch_t *) PIC(switchesList->switches);
30233023

30243024
while (nbSwitchesInPage < nbSwitches) {
30253025
// The text string must be a 1 liner and its height is LIST_ITEM_MIN_TEXT_HEIGHT

0 commit comments

Comments
 (0)