summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/torture/torture.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index c8fe9dc0cf..b8160bb035 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -2984,8 +2984,10 @@ static double create_procs(BOOL (*fn)(int), BOOL *result)
return -1;
}
- memset((void *)child_status, 0, sizeof(pid_t)*nprocs);
- memset((void *)child_status_out, True, sizeof(BOOL)*nprocs);
+ for (i = 0; i < nprocs; i++) {
+ child_status[i] = 0;
+ child_status_out[i] = True;
+ }
start_timer();
@@ -3055,7 +3057,6 @@ static double create_procs(BOOL (*fn)(int), BOOL *result)
return end_timer();
}
-
#define FLAG_MULTIPROC 1
static struct {