> > Also, is there a good reason why we don't allow zero-length mallocs? > Yes. Because they're usually indicative of some bogosity or some condition that should be flagged or handled somehow else, or even worse bugs. This assertion (size!=0) has already detected numerous such cases. - Godmar