r4138: initialise 'type' in RPC-WINREG EnumValue test
authorAndrew Tridgell <tridge@samba.org>
Fri, 10 Dec 2004 22:35:35 +0000 (22:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:06:30 +0000 (13:06 -0500)
source/torture/rpc/winreg.c

index d500a89435fb3758bd62b7af0be52f786d4b4ea3..8f3e543fb59bd3b6c0c2a5cbe29ee4adf9decb34 100644 (file)
@@ -322,7 +322,7 @@ static BOOL test_EnumValue(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
                           struct policy_handle *handle, int max_valnamelen, int max_valbufsize)
 {
        struct winreg_EnumValue r;
-       uint32 type;
+       uint32 type = 0;
        uint32 size = max_valbufsize, zero = 0;
        BOOL ret = True;
        uint8_t buf8;