s4:torture: Make sure variable is initialized in oplock test
[metze/samba/wip.git] / 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);