aboutsummaryrefslogtreecommitdiff
path: root/rt
diff options
context:
space:
mode:
Diffstat (limited to 'rt')
-rw-r--r--rt/tst-mqueue5.c2
-rw-r--r--rt/tst-mqueue6.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/rt/tst-mqueue5.c b/rt/tst-mqueue5.c
index 70d97a3..2b19b6a 100644
--- a/rt/tst-mqueue5.c
+++ b/rt/tst-mqueue5.c
@@ -58,7 +58,7 @@ rtmin_handler (int sig, siginfo_t *info, void *ctx)
static int
(mqsend) (mqd_t q, int line)
{
- char c;
+ char c = 0;
if (mq_send (q, &c, 1, 1) != 0)
{
printf ("mq_send on line %d failed with: %m\n", line);
diff --git a/rt/tst-mqueue6.c b/rt/tst-mqueue6.c
index bc875f1..a22ac05 100644
--- a/rt/tst-mqueue6.c
+++ b/rt/tst-mqueue6.c
@@ -40,7 +40,7 @@
static int
(mqsend) (mqd_t q, int line)
{
- char c;
+ char c = 0;
if (mq_send (q, &c, 1, 1) != 0)
{
printf ("mq_send on line %d failed with: %m\n", line);