summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/POSIX
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests/POSIX')
-rw-r--r--testsuites/libtests/POSIX/free.c5
-rw-r--r--testsuites/libtests/POSIX/readv.c2
-rw-r--r--testsuites/libtests/POSIX/sigismember.c2
-rw-r--r--testsuites/libtests/POSIX/sigprocmask.c3
-rw-r--r--testsuites/libtests/POSIX/writev.c2
5 files changed, 8 insertions, 6 deletions
diff --git a/testsuites/libtests/POSIX/free.c b/testsuites/libtests/POSIX/free.c
index 8550eaa85c..246415ce65 100644
--- a/testsuites/libtests/POSIX/free.c
+++ b/testsuites/libtests/POSIX/free.c
@@ -12,9 +12,10 @@
#include <stdlib.h>
+void* p;
+
int main (void)
{
- free((void *) 42);
-
+ free(p);
return 0;
}
diff --git a/testsuites/libtests/POSIX/readv.c b/testsuites/libtests/POSIX/readv.c
index a980e9468c..6b0bf63f94 100644
--- a/testsuites/libtests/POSIX/readv.c
+++ b/testsuites/libtests/POSIX/readv.c
@@ -14,7 +14,7 @@
int main(void)
{
- struct iovec iov;
+ struct iovec iov = { 0 };
int count = 4;
ssize_t ret;
diff --git a/testsuites/libtests/POSIX/sigismember.c b/testsuites/libtests/POSIX/sigismember.c
index ed980b70f0..f4c7d37cb2 100644
--- a/testsuites/libtests/POSIX/sigismember.c
+++ b/testsuites/libtests/POSIX/sigismember.c
@@ -14,7 +14,7 @@
int main(void)
{
- sigset_t set;
+ sigset_t set = { 0 };
int status;
status = sigismember(&set, 21);
diff --git a/testsuites/libtests/POSIX/sigprocmask.c b/testsuites/libtests/POSIX/sigprocmask.c
index ba634e4660..25de0c28c7 100644
--- a/testsuites/libtests/POSIX/sigprocmask.c
+++ b/testsuites/libtests/POSIX/sigprocmask.c
@@ -15,7 +15,8 @@
int main(void)
{
int rc;
- sigset_t set1, set2;
+ sigset_t set1 = { 0 };
+ sigset_t set2 = { 0 };
rc = sigprocmask(SIG_BLOCK, &set1, &set2);
(void) rc;
diff --git a/testsuites/libtests/POSIX/writev.c b/testsuites/libtests/POSIX/writev.c
index 853b8a8ced..5b5068db65 100644
--- a/testsuites/libtests/POSIX/writev.c
+++ b/testsuites/libtests/POSIX/writev.c
@@ -14,7 +14,7 @@
int main(void)
{
- struct iovec iov;
+ struct iovec iov = { 0 };
int count = 4;
ssize_t ret;