[PATCH 03/14] s4-torture: Make sure the handles are initialized correctly.

Andreas Schneider asn at samba.org
Wed Dec 4 06:01:49 MST 2013


Signed-off-by: Andreas Schneider <asn at samba.org>
---
 source4/torture/rpc/winreg.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index 55164cd..d3c3d05 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -2577,7 +2577,10 @@ static bool test_volatile_keys(struct torture_context *tctx,
 			       int hkey)
 {
 	struct policy_handle new_handle, hive_handle;
-	enum winreg_CreateAction action_taken;
+	enum winreg_CreateAction action_taken = REG_ACTION_NONE;
+
+	ZERO_STRUCT(new_handle);
+	ZERO_STRUCT(hive_handle);
 
 	torture_comment(tctx, "Testing VOLATILE key\n");
 
-- 
1.8.5




More information about the samba-technical mailing list