1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

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>
This commit is contained in:
Andreas Schneider 2018-05-16 15:06:02 +02:00 committed by Andrew Bartlett
parent e7e4362ba2
commit 3f1da75f3a

View File

@ -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);