git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s4:torture: Make sure variable is initialized in oplock test
[metze/samba/wip.git]
/
source4
/
torture
/
smb2
/
oplock.c
diff --git
a/source4/torture/smb2/oplock.c
b/source4/torture/smb2/oplock.c
index cb1b5edddfeeb64683a2495ce486be3db9485c13..6e53007bcfc14b42a62cc4f02e57cd8255de67c4 100644
(file)
--- 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);