summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-12-04 14:01:49 +0100
committerMichael Adam <obnox@samba.org>2013-12-06 01:14:09 +0100
commitef2cd51586a359d192ae1d07898d9e10cb5fb1b0 (patch)
tree91c2996a32a6dbd750f563d948a61754fa01b82a
parent13e33ab98e8c7ffa5b9a6fd8089688c6be961ffb (diff)
downloadsamba-ef2cd51586a359d192ae1d07898d9e10cb5fb1b0.tar.gz
samba-ef2cd51586a359d192ae1d07898d9e10cb5fb1b0.tar.xz
samba-ef2cd51586a359d192ae1d07898d9e10cb5fb1b0.zip
s4-torture: Make sure the handles are initialized correctly.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source4/torture/rpc/winreg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index 55164cdadf..d3c3d05ed6 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");