summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxrdwrv
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-12-17 10:59:13 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-12-20 10:31:53 +0100
commitc1d8ee4cdc094b3595d2f4d0cdfc17a53f85716c (patch)
tree4416b3030bf83416219e5d36039a3bafa84fcbbe /testsuites/psxtests/psxrdwrv
parentFilesystem: Use default kqfilter and poll handler (diff)
downloadrtems-c1d8ee4cdc094b3595d2f4d0cdfc17a53f85716c.tar.bz2
libcsupport: Accept NULL for zero-length entries
Diffstat (limited to 'testsuites/psxtests/psxrdwrv')
-rw-r--r--testsuites/psxtests/psxrdwrv/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxrdwrv/test.c b/testsuites/psxtests/psxrdwrv/test.c
index 0e066746a9..181d9d42a1 100644
--- a/testsuites/psxtests/psxrdwrv/test.c
+++ b/testsuites/psxtests/psxrdwrv/test.c
@@ -361,7 +361,7 @@ int doErrorTest(void)
/* writev -- all zero length buffers */
vec[0].iov_base = vec;
vec[0].iov_len = 0;
- vec[1].iov_base = vec;
+ vec[1].iov_base = NULL;
vec[1].iov_len = 0;
puts("writev iov_len works with no effect -- OK");
rc = writev(fd, vec, 2);
@@ -374,7 +374,7 @@ int doErrorTest(void)
/* readv -- all zero length buffers */
vec[0].iov_base = vec;
vec[0].iov_len = 0;
- vec[1].iov_base = vec;
+ vec[1].iov_base = NULL;
vec[1].iov_len = 0;
puts("readv iov_len works with no effect -- OK");
rc = readv(fd, vec, 2);