Browse Source

Fix

pull/4/head
Mihailo Milenkovic 6 years ago
parent
commit
6d1ab84a05
  1. 4
      src/cc/dapps/oraclefeed.c

4
src/cc/dapps/oraclefeed.c

@ -330,9 +330,9 @@ cJSON *get_komodocli(char *refcoin,char **retstrp,char *acname,char *method,char
system(cmdstr);
*retstrp = 0;
if ( (jsonstr= filestr(&fsize,fname)) != 0 )
{
//fprintf(stderr,"%s -> jsonstr.(%s)\n",cmdstr,jsonstr);
{
jsonstr[strlen(jsonstr)-1]='\0';
fprintf(stderr,"%s -> jsonstr.(%s)\n",cmdstr,jsonstr);
if ( (jsonstr[0] != '{' && jsonstr[0] != '[') || (retjson= cJSON_Parse(jsonstr)) == 0 )
*retstrp = jsonstr;
else free(jsonstr);

Loading…
Cancel
Save