diff --git a/src/libwolfboot.c b/src/libwolfboot.c index 14381ad2..a9126e06 100644 --- a/src/libwolfboot.c +++ b/src/libwolfboot.c @@ -267,7 +267,7 @@ static uint8_t* RAMFUNCTION get_trailer_at(uint8_t part, uint32_t at) { uint32_t sel_sec = 0; #ifdef NVM_FLASH_WRITEONCE - nvm_select_fresh_sector(part); + sel_sec = nvm_select_fresh_sector(part); #endif if (part == PART_BOOT) { if (FLAGS_BOOT_EXT()){