r22969: fix some more places where we could end up with more than one event
[sfrench/samba-autobuild/.git] / source4 / torture / basic / misc.c
index 33f0b9eff605f7c7678ab81edc79084280e2ded0..933e4334c03b8a47f6c07a45eb07bffa45eb2f5b 100644 (file)
@@ -843,7 +843,7 @@ BOOL run_benchrw(struct torture_context *tctx)
                        torture_numops, torture_nprocs);
 
        /*init talloc context*/
-       ev = event_context_init(tctx);
+       ev = tctx->ev;
        state = talloc_array(tctx, struct benchrw_state *, torture_nprocs);
 
        /* init params using lp_parm_xxx */