fix the issue#887,in function "ethereum_createOnetimeWallet"
@@ -59,11 +59,13 @@ BoatEthWallet *g_ethereum_wallet_ptr;
__BOATSTATIC BOAT_RESULT ethereum_createOnetimeWallet()
{
BSINT32 index;
- BoatEthWalletConfig wallet_config = {0};
+ BoatEthWalletConfig wallet_config;
BUINT8 binFormatKey[32] = {0};
(void)binFormatKey; //avoid warning
+ memset(&wallet_config,0,sizeof(wallet_config));
+
/* wallet_config value assignment */
#if defined(USE_PRIKEY_FORMAT_INTERNAL_GENERATION)
//BoatLog(BOAT_LOG_NORMAL, ">>>>>>>>>> wallet format: internal generated.");
