Skip to content

Commit d7711a4

Browse files
authored
Merge pull request #297 from danielinux/fix_get_trailer_nvm
Fix bug in get_trailer_at()
2 parents f008ebf + 48496c3 commit d7711a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libwolfboot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static uint8_t* RAMFUNCTION get_trailer_at(uint8_t part, uint32_t at)
267267
{
268268
uint32_t sel_sec = 0;
269269
#ifdef NVM_FLASH_WRITEONCE
270-
nvm_select_fresh_sector(part);
270+
sel_sec = nvm_select_fresh_sector(part);
271271
#endif
272272
if (part == PART_BOOT) {
273273
if (FLAGS_BOOT_EXT()){

0 commit comments

Comments
 (0)