Skip to content

Commit 4941cfc

Browse files
Fix clang static analyzer
1 parent 5f9a0e3 commit 4941cfc

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
@@ -3083,9 +3083,9 @@ uint8_t nbgl_useCaseGetNbSwitchesInPage(uint8_t nbSwit
30833083
{
30843084
uint8_t nbSwitchesInPage = 0;
30853085
uint16_t currentHeight = 0;
3086-
uint16_t previousHeight;
3087-
uint16_t navHeight = withNav ? SIMPLE_FOOTER_HEIGHT : 0;
3088-
nbgl_contentSwitch_t *switchArray = (nbgl_contentSwitch_t *) PIC(switchesList->switches);
3086+
uint16_t previousHeight = 0;
3087+
uint16_t navHeight = withNav ? SIMPLE_FOOTER_HEIGHT : 0;
3088+
nbgl_contentSwitch_t *switchArray = (nbgl_contentSwitch_t *) PIC(switchesList->switches);
30893089

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

0 commit comments

Comments
 (0)