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
1 changed files with 1 additions and 1 deletions

View File

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