]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture: do not zero members more than once
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 4 Dec 2025 23:07:21 +0000 (12:07 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 15 Jan 2026 01:48:37 +0000 (01:48 +0000)
three lines up is `*suite = talloc_zero(...)`.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/torture/torture.c

index 930b6036325200df0e5ee8c84083069974b7bdd3..2125de47f3d4350a202d3aaba3cb144ca27c000f 100644 (file)
@@ -272,8 +272,6 @@ struct torture_suite *torture_suite_create(TALLOC_CTX *ctx, const char *name)
        struct torture_suite *suite = talloc_zero(ctx, struct torture_suite);
 
        suite->name = talloc_strdup(suite, name);
-       suite->testcases = NULL;
-       suite->children = NULL;
 
        return suite;
 }