From e10e01c82d08f58b16ea28508bc86e68528a6aa3 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 15 Nov 2008 23:35:36 +0100 Subject: [PATCH] Fix a use-without init buf in recv.c. We need to init not only the receiver task but also the stdout task structure. --- recv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/recv.c b/recv.c index 5bce847e..7ef78a90 100644 --- a/recv.c +++ b/recv.c @@ -67,6 +67,7 @@ int main(int argc, char *argv[]) s.default_timeout.tv_sec = 1; s.default_timeout.tv_usec = 0; + memset(&sot, 0, sizeof(struct stdout_task)); memset(&rn, 0, sizeof(struct receiver_node)); for (ret = 0; receivers[ret].name; ret++) receivers[ret].init(&receivers[ret]); -- 2.39.5