Skip to content

Commit

Permalink
Removed useless temporary path variable
Browse files Browse the repository at this point in the history
  • Loading branch information
apaillier-ledger committed Sep 27, 2024
1 parent 610fa5d commit f837802
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src_features/signMessageEIP712/path.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,16 +708,14 @@ bool path_exists_in_backup(const char *path, size_t length) {
size_t offset = 0;
size_t i;
const void *field_ptr;
s_path tmp_path;
const char *typename;
uint8_t typename_len;
const void *struct_ptr;
uint8_t fields_count;
const char *key;
uint8_t key_len;

memcpy(&tmp_path, path_backup, sizeof(tmp_path));
field_ptr = get_nth_field_from(&tmp_path, NULL, tmp_path.depth_count);
field_ptr = get_nth_field_from(path_backup, NULL, path_backup->depth_count);
while (offset < length) {
if (((offset + 1) > length) || (memcmp(path + offset, ".", 1) != 0)) {
return false;
Expand Down

0 comments on commit f837802

Please sign in to comment.