diff options
Diffstat (limited to 'cpukit/libcsupport/include/rtems')
-rw-r--r-- | cpukit/libcsupport/include/rtems/libio_.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h index 995d621f79..78a57c8620 100644 --- a/cpukit/libcsupport/include/rtems/libio_.h +++ b/cpukit/libcsupport/include/rtems/libio_.h @@ -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 ); } } |