summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-05-16 15:06:02 +0200
committerAndrew Bartlett <abartlet@samba.org>2018-05-16 21:30:22 +0200
commit3f1da75f3a0cf0d5c1cce1b987dda6e0115ca8dc (patch)
tree7a00c1c09419accc96be840d628fd033ece6ad59
parente7e4362ba24fe0300b2b649949e097c062a58756 (diff)
downloadsamba-3f1da75f3a0cf0d5c1cce1b987dda6e0115ca8dc.tar.gz
s4:torture: Make sure variable is initialized in oplock test
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/torture/smb2/oplock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/smb2/oplock.c b/source4/torture/smb2/oplock.c
index cb1b5edddfe..6e53007bcfc 100644
--- a/source4/torture/smb2/oplock.c
+++ b/source4/torture/smb2/oplock.c
@@ -4976,7 +4976,8 @@ static void child_sig_term_handler(struct tevent_context *ev,
void *private_data)
{
int *pstatus = (int *)private_data;
- int status;
+ int status = 0;
+
wait(&status);
if (WIFEXITED(status)) {
*pstatus = WEXITSTATUS(status);