GuillaumeGomez/c_vec-rs

Tolerate zero-length vectors with null.

Opened this issue · 0 comments

It is valid for malloc(0) to return NULL or a valid, unique pointer, depending on the implementation. So it makes sense that NULL should be permitted for the address of a zero-length foreign array.