"Sean McGovern" <[email protected]> writes:

> On Solaris, malloc(0) returns a NULL pointer. This, and returning a
> valid pointer of 0 length are both considered POSIX-compliant.

Thus there is no need to protect against it.  The result of malloc(0)
should never be dereferenced, so whether it is null or not doesn't matter.

If this patch is intended to fix the Darwin breakage, I am very much
against it.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to