From: Matthias Dieter Wallnöfer Date: Mon, 22 Mar 2010 12:33:04 +0000 (+0100) Subject: s4:registry - "patchfile" - initialise the data blobs X-Git-Tag: samba-3.6.0pre1~4193 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=686825e0255a106d7bc67fb6059cd3c1ddefe315;p=ira%2Fwip.git s4:registry - "patchfile" - initialise the data blobs --- diff --git a/source4/lib/registry/patchfile.c b/source4/lib/registry/patchfile.c index f0c69274fdc..9a4c9a6fb76 100644 --- a/source4/lib/registry/patchfile.c +++ b/source4/lib/registry/patchfile.c @@ -175,7 +175,7 @@ WERROR reg_generate_diff_key(struct registry_key *oldkey, for(i = 0; i < new_num_values; i++) { const char *name; uint32_t type1, type2; - DATA_BLOB contents1, contents2; + DATA_BLOB contents1 = { NULL, 0 }, contents2 = { NULL, 0 }; error1 = reg_key_get_value_by_index(mem_ctx, newkey, i, &name, &type1, &contents1); @@ -222,7 +222,7 @@ WERROR reg_generate_diff_key(struct registry_key *oldkey, for (i = 0; i < old_num_values; i++) { const char *name; uint32_t type; - DATA_BLOB contents; + DATA_BLOB contents = { NULL, 0 }; error1 = reg_key_get_value_by_index(mem_ctx, oldkey, i, &name, &type, &contents);