From 804fd5cdaecc493accfeb5c6ac8b1752506d3263 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 11 Sep 2018 07:07:57 -1100 Subject: [PATCH] Test --- src/cc/dapps/oraclefeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/dapps/oraclefeed.c b/src/cc/dapps/oraclefeed.c index 935c3c59c..37e6320fc 100644 --- a/src/cc/dapps/oraclefeed.c +++ b/src/cc/dapps/oraclefeed.c @@ -320,7 +320,7 @@ cJSON *get_komodocli(char **retstrp,char *acname,char *method,char *arg0,char *a if ( (jsonstr= filestr(&fsize,fname)) != 0 ) { fprintf(stderr,"%s -> jsonstr.(%s)\n",cmdstr,jsonstr); - if ( jsonstr[0] != '{' && jsonstr[0] != '[' && (retjson= cJSON_Parse(jsonstr)) == 0 ) + if ( (jsonstr[0] == '{' || jsonstr[0] == '[') && (retjson= cJSON_Parse(jsonstr)) == 0 ) *retstrp = jsonstr; else free(jsonstr); }