git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e7e4362
)
s4:torture: Make sure variable is initialized in oplock test
author
Andreas Schneider
<asn@samba.org>
Wed, 16 May 2018 13:06:02 +0000
(15:06 +0200)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 16 May 2018 19:30:22 +0000
(21:30 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/smb2/oplock.c
patch
|
blob
|
history
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);