fix the issue#887,in function "ethereum_createPersistWallet"
@@ -111,11 +111,13 @@ __BOATSTATIC BOAT_RESULT ethereum_createOnetimeWallet()
__BOATSTATIC BOAT_RESULT ethereum_createPersistWallet(BCHAR *wallet_name)
{
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.");
