fix the issue in demo_quorum_transfer.c
@@ -60,9 +60,11 @@ BoatQuorumWallet *g_quorum_wallet_ptr;
__BOATSTATIC BOAT_RESULT quorum_createOnetimeWallet()
{
BSINT32 index;
- BoatQuorumWalletConfig wallet_config = {0};
+ BoatQuorumWalletConfig wallet_config;
BUINT8 binFormatKey[32] = {0};
+ memset(&wallet_config,0,sizeof(wallet_config));
+
(void)binFormatKey; //avoid warning
/* wallet_config value assignment */
#if defined(USE_PRIKEY_FORMAT_INTERNAL_GENERATION)
@@ -115,9 +117,11 @@ __BOATSTATIC BOAT_RESULT quorum_createOnetimeWallet()
__BOATSTATIC BOAT_RESULT quorum_createPersistWallet(BCHAR *wallet_name)
{
BSINT32 index;
- BoatQuorumWalletConfig wallet_config = {0};
+ BoatQuorumWalletConfig wallet_config;
BUINT8 binFormatKey[32] = {0};
+ memset(&wallet_config,0,sizeof(wallet_config));
+
(void)binFormatKey; //avoid warning
/* wallet_config value assignment */
