1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-29 10:58:21 +00:00

Fix NULL pointer access

Fixes #269
This commit is contained in:
Jochen Hoenicke 2017-12-16 15:23:23 +01:00
parent ded41c484c
commit 810443f197

View File

@ -329,7 +329,7 @@ void fsm_msgChangePin(ChangePin *msg)
CHECK_PIN_UNCACHED CHECK_PIN_UNCACHED
if (removal) { if (removal) {
storage_setPin(0); storage_setPin("");
storage_update(); storage_update();
fsm_sendSuccess(_("PIN removed")); fsm_sendSuccess(_("PIN removed"));
} else { } else {