From 67763a8917c3006bc81c8feb50e6d456294a26c8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 6 Jun 2017 12:16:39 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_remember.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/exchanges/LP_remember.c b/iguana/exchanges/LP_remember.c index 0ac108199..d393f599f 100644 --- a/iguana/exchanges/LP_remember.c +++ b/iguana/exchanges/LP_remember.c @@ -954,12 +954,12 @@ char *basilisk_swaplist() char *basilisk_swapfinished(uint32_t requestid,uint32_t quoteid) { - char *liststr,*retstr = 0; cJSON *array,*item; int32_t i,n; + char *liststr,*retstr = 0; cJSON *retjson,*array,*item; int32_t i,n; if ( (liststr= basilisk_swaplist()) != 0 ) { - if ( (array= cJSON_Parse(liststr)) != 0 ) + if ( (retjson= cJSON_Parse(liststr)) != 0 ) { - if ( (n= cJSON_GetArraySize(array)) > 0 ) + if ( (array= jarray(&n,retjson,"swaps")) != 0 ) { for (i=0; i