libcsupport: Accept NULL for zero-length entries

This commit is contained in:
Sebastian Huber
2013-12-17 10:59:13 +01:00
parent 56bea4339f
commit c1d8ee4cdc
4 changed files with 31 additions and 23 deletions

View File

@@ -887,7 +887,7 @@ static inline ssize_t rtems_libio_iovec_eval(
total += ( ssize_t ) len;
if ( iov[ v ].iov_base == NULL ) {
if ( iov[ v ].iov_base == NULL && len != 0 ) {
rtems_set_errno_and_return_minus_one( EINVAL );
}
}