From 50f6ed3c62aadfac71c151c6184159ef5895e285 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 16 May 2016 13:04:09 -0500 Subject: [PATCH] test --- iguana/iguana_wallet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/iguana_wallet.c b/iguana/iguana_wallet.c index 8b941a102..5cdff456d 100755 --- a/iguana/iguana_wallet.c +++ b/iguana/iguana_wallet.c @@ -271,7 +271,9 @@ cJSON *iguana_getaddressesbyaccount(struct supernet_info *myinfo,struct iguana_i struct iguana_waccount *subset,*tmp; struct iguana_waddress *waddr,*tmp2; cJSON *retjson,*array; retjson = cJSON_CreateObject(); array = cJSON_CreateArray(); - if ( account == 0 || strcmp("*",account) != 0 ) + if ( account == 0 ) + account = "*"; + if ( strcmp("*",account) != 0 ) { if ( (subset= iguana_waccountfind(myinfo,coin,account)) != 0 ) {