From: jacob Date: Sun, 12 Oct 2003 13:16:39 +0000 (+0000) Subject: Remove all the "assert(len>0)" which forbade zero-length writes across the X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/bfa5400d3e166e1acc25dbe0b7f1fdf74b272568?hp=bfa5400d3e166e1acc25dbe0b7f1fdf74b272568 Remove all the "assert(len>0)" which forbade zero-length writes across the from_backend() interface, after having made all implementations safe against being called with len==0 and possibly-NULL/undefined "data". (This includes making misc.c:bufchain_add() more robust in this area.) Assertion was originally added 2002-03-01; e.g., see plink.c:1.53 [r1571]. I believe this now shouldn't break anything. This should hopefully make `ppk-empty-comment' finally GO AWAY. (Tested with Unix PuTTY.) git-svn-id: svn://svn.tartarus.org/sgt/putty@3500 cda61777-01e9-0310-a592-d414129be87e ---