[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ftpapi] yajl_stmf_parse



I couldn’t find a better place to post this question. Let me know if I need to post it somewhere else.

Here is the relevant code:


       userDataPtr = %alloc(100);

       yajlEventHandlerPtr = %paddr(yajlEventHandler);

       ifsPath = %trim(ifsPath) +

                 '/requestJSON/1/R10_20180601101624805000.txt';

       yajl_stmf_parse(%trim(ifsPath):yajlEventHandlerPtr

                                     :userDataPtr:errMsg);    


Parse is blowing up with a null pointer error after it reads the IFS. So, it gets past the open. The read sets jsonSize to 16, which I know is wrong, cause the file is about 300 characters long. Lastly, jsonBuf is null.

I did find a 2015 post reporting, what appears to be the same issue, but I don’t see a response. He sketched out a work around, but I’m not keen on modifying your code. I’m guessing I have something wrong, but need a pointer.

Tony
-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi