diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-08 20:37:33 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-09 18:34:00 +0200 |
commit | 3d27eddc5fc49ce3426b36e476886d94fee116f4 (patch) | |
tree | 1791039f3c5e471a4101360013324030d39f58ec /NK_C_API.cc | |
parent | 1015a97b988af86c6567059282e953705efff429 (diff) | |
download | libnitrokey-3d27eddc5fc49ce3426b36e476886d94fee116f4.tar.gz libnitrokey-3d27eddc5fc49ce3426b36e476886d94fee116f4.tar.bz2 |
Rename variables
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc index 4773036..852becb 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -358,8 +358,8 @@ extern int NK_enable_password_safe(const char *user_pin){ extern uint8_t * NK_get_password_safe_slot_status(){ NK_last_command_status = 0; auto m = NitrokeyManager::instance(); - auto res = new uint8_t[16]; - memset(res, 0, 16); + auto null_result = new uint8_t[16]; + memset(null_result, 0, 16); try { const auto slot_status = m->get_password_safe_slot_status(); return slot_status; //TODO FIXME @@ -367,7 +367,7 @@ extern uint8_t * NK_get_password_safe_slot_status(){ catch (CommandFailedException & commandFailedException){ NK_last_command_status = commandFailedException.last_command_status; } - return res; + return null_result; } extern uint8_t NK_get_user_retry_count(){ |