From 67522f1943e38d0ff9de2d4907abcc8b5755b302 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 1 Jul 2016 10:29:24 -0300 Subject: [PATCH] test --- basilisk/basilisk_DEX.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/basilisk/basilisk_DEX.c b/basilisk/basilisk_DEX.c index 0fd5dee26..4a906c1df 100755 --- a/basilisk/basilisk_DEX.c +++ b/basilisk/basilisk_DEX.c @@ -45,6 +45,8 @@ uint32_t basilisk_quoteid(struct basilisk_request *rp) int32_t basilisk_rwDEXquote(int32_t rwflag,uint8_t *serialized,struct basilisk_request *rp) { int32_t len = 0; + if ( rwflag != 0 ) + memset(serialized,0,sizeof(*rp)); len += iguana_rwnum(rwflag,&serialized[len],sizeof(rp->requestid),&rp->requestid); len += iguana_rwnum(rwflag,&serialized[len],sizeof(rp->timestamp),&rp->timestamp); // must be 2nd len += iguana_rwnum(rwflag,&serialized[len],sizeof(rp->quoteid),&rp->quoteid);