projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e858b0
)
Fix a use-without init buf in recv.c.
author
Andre Noll
<maan@systemlinux.org>
Sat, 15 Nov 2008 22:35:36 +0000
(23:35 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Sat, 15 Nov 2008 22:35:36 +0000
(23:35 +0100)
We need to init not only the receiver task but also the stdout task structure.
recv.c
patch
|
blob
|
history
diff --git
a/recv.c
b/recv.c
index 5bce847e2dfde634595c6bb62b39bafe39bae953..7ef78a90368c7770c58e7878e60fa78aa819da75 100644
(file)
--- 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]);