From a2f6819adf870b69d1b83bc61b04f44f09ee6b47 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 5 Dec 2017 12:32:52 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_utxo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_utxo.c b/iguana/exchanges/LP_utxo.c index 961f96b4a..4424cbb4a 100644 --- a/iguana/exchanges/LP_utxo.c +++ b/iguana/exchanges/LP_utxo.c @@ -622,7 +622,7 @@ cJSON *LP_balances(char *coinaddr) array = cJSON_CreateArray(); HASH_ITER(hh,LP_coins,coin,tmp) { - if ( coinaddr != 0 && strcmp(coinaddr,coin->smartaddr) == 0 ) + if ( (coinaddr == 0 || coinaddr[0] == 0) && strcmp(coinaddr,coin->smartaddr) == 0 ) { if ( (balance= LP_RTsmartbalance(coin)) != 0 ) { @@ -637,7 +637,7 @@ cJSON *LP_balances(char *coinaddr) jaddi(array,item); } } - else + else if ( coinaddr != 0 && coinaddr[0] != 0 ) { if ( (retjson= LP_address_balance(coin,coinaddr,1)) != 0 ) {