From 686825e0255a106d7bc67fb6059cd3c1ddefe315 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Mon, 22 Mar 2010 13:33:04 +0100 Subject: s4:registry - "patchfile" - initialise the data blobs --- source4/lib/registry/patchfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/lib/registry/patchfile.c b/source4/lib/registry/patchfile.c index f0c69274fd..9a4c9a6fb7 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); -- cgit