diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 879a6d38e..be5b82e5e 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -209,7 +209,7 @@ cJSON *LP_NXT_redeems() { assetid = j64bits(item,"asset"); qty = j64bits(item,"quantityQNT"); - if ( (attach= jobj(item,"attachment")) != 0 && jint(item,"version.AssetTransfer") == 1 ) + if ( (attach= jobj(item,"attachment")) != 0 && jint(attach,"version.AssetTransfer") == 1 ) { printf("txnum.%llu (%s)\n",(long long)txnum,jprint(attach,0)); if ( (msgstr == 0 || msgstr[0] == 0) && jint(attach,"version.PrunablePlainMessage") == 1 ) @@ -224,8 +224,7 @@ cJSON *LP_NXT_redeems() if ( msgstr == 0 || msgstr[0] == 0 ) msgstr = jstr(attach,"message"); } - if ( msgstr != 0 ) - printf("%d: message.(%s) <- %.8f %llu\n",i,msgstr,dstr(qty),(long long)assetid); + printf("%d: message.(%s) <- %.8f %llu\n",i,msgstr,dstr(qty),(long long)assetid); if ( msgjson != 0 ) free_json(msgjson); }