tests: fix tap.c use of uninitialized pipe_r_file
authorYannick Brosseau <yannick.brosseau@gmail.com>
Sun, 20 Feb 2011 15:19:36 +0000 (10:19 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sun, 20 Feb 2011 15:19:36 +0000 (10:19 -0500)
commitee103ff3022c64569bbcc19f0c2fee195b07b1ce
tree8a9efa1eb01ab6cc4fe6bcf3c59353c5cdf2f74c
parent45b22615b67b3ddc8f38ad007d0121a96e1097f6
tests: fix tap.c use of uninitialized pipe_r_file

[ Edit: updated patch header ]

The _tap_comment_stdout thread can start using pipe_r_file when it
is still uninitialized. Fix it by moving the initialization before the pthread
creation.

Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/tap.c
This page took 0.022967 seconds and 4 git commands to generate.