Skip to content

Commit e799604

Browse files
committed
refactor(lt_init): move ret_unused declaration to the top of the function
1 parent ce3fc66 commit e799604

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libtropic.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ lt_ret_t lt_init(lt_handle_t *h)
4242
return LT_PARAM_ERR;
4343
}
4444

45-
lt_ret_t ret;
45+
lt_ret_t ret, ret_unused;
4646

4747
// When compiling libtropic with l3 buffer embedded into handle,
4848
// define buffer's length here (later used to prevent overflow during communication).
@@ -76,7 +76,6 @@ lt_ret_t lt_init(lt_handle_t *h)
7676

7777
return LT_OK;
7878

79-
lt_ret_t ret_unused;
8079
crypto_ctx_cleanup:
8180
ret_unused = lt_crypto_ctx_deinit(&h->l3.crypto_ctx);
8281

0 commit comments

Comments
 (0)