Skip to content

Commit 7f67196

Browse files
author
Cruz Monrreal
authored
Merge pull request #6595 from OpenNuvoton/nuvoton_fix_nvstore
Fix typo with NVStore
2 parents a463b07 + d52b502 commit 7f67196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/nvstore/source/nvstore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ NVStore::NVStore() : _init_done(0), _init_attempts(0), _active_area(0), _max_key
134134
_active_area_version(0), _free_space_offset(0), _size(0), _mutex(0), _offset_by_key(0), _flash(0),
135135
_min_prog_size(0), _page_buf(0)
136136
{
137-
memcpy(_flash_area_params, 0, sizeof(_flash_area_params));
137+
memset(_flash_area_params, 0, sizeof(_flash_area_params));
138138
}
139139

140140
NVStore::~NVStore()

0 commit comments

Comments
 (0)