Skip to content

Commit 6e862cf

Browse files
committed
Fix psa_crypto_generator_init implementation to use the init define macro
1 parent 4cef73d commit 6e862cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/TARGET_PSA/services/crypto/COMPONENT_PSA_SRV_IPC/crypto_struct_ipc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ struct psa_crypto_generator_s {
4747
psa_handle_t handle;
4848
};
4949

50+
#define PSA_CRYPTO_GENERATOR_INIT { PSA_NULL_HANDLE }
5051
static inline struct psa_crypto_generator_s psa_crypto_generator_init(void)
5152
{
52-
const struct psa_crypto_generator_s v = { 0 };
53+
const struct psa_crypto_generator_s v = PSA_CRYPTO_GENERATOR_INIT;
5354
return (v);
5455
}
5556

@@ -58,6 +59,5 @@ struct psa_key_policy_s {
5859
psa_algorithm_t alg;
5960
};
6061

61-
#define PSA_CRYPTO_GENERATOR_INIT { PSA_NULL_HANDLE }
6262

6363
#endif /* PSA_CRYPTO_STRUCT_H */

0 commit comments

Comments
 (0)