On 13/03/2015 15:50, Roman Khimov wrote:
11 if (!w)
That one should be: if (!*w)
It's obvious that if 'w' is NULL there will be NULL pointer dereference on line 19 or 20. What's not so obvious is how to properly fix that.
Actually, w is never supposed to be NULL. Calling mininetstring_write() with a NULL w is a programming error, and testing w instead of *w was a bug. Thanks for the report! -- Laurent