s4:torture: Make sure variable is initialized in oplock test
authorAndreas Schneider <asn@samba.org>
Wed, 16 May 2018 13:06:02 +0000 (15:06 +0200)
committerAndrew 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

index cb1b5edddfeeb64683a2495ce486be3db9485c13..6e53007bcfc14b42a62cc4f02e57cd8255de67c4 100644 (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);