diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-12-17 10:59:13 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-12-20 10:31:53 +0100 |
commit | c1d8ee4cdc094b3595d2f4d0cdfc17a53f85716c (patch) | |
tree | 4416b3030bf83416219e5d36039a3bafa84fcbbe /cpukit/libcsupport/include/rtems/libio_.h | |
parent | Filesystem: Use default kqfilter and poll handler (diff) | |
download | rtems-c1d8ee4cdc094b3595d2f4d0cdfc17a53f85716c.tar.bz2 |
libcsupport: Accept NULL for zero-length entries
Diffstat (limited to '')
-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 ); } } |