summaryrefslogtreecommitdiff
path: root/source4/lib/registry
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-22 13:33:04 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-22 13:33:04 +0100
commit686825e0255a106d7bc67fb6059cd3c1ddefe315 (patch)
tree90e225bf18788c05ce53936e5a5c112898df57ee /source4/lib/registry
parentc5b9b25c714516555bb6832edb62a72b66268dd8 (diff)
downloadsamba-686825e0255a106d7bc67fb6059cd3c1ddefe315.tar.gz
samba-686825e0255a106d7bc67fb6059cd3c1ddefe315.tar.bz2
samba-686825e0255a106d7bc67fb6059cd3c1ddefe315.zip
s4:registry - "patchfile" - initialise the data blobs
Diffstat (limited to 'source4/lib/registry')
-rw-r--r--source4/lib/registry/patchfile.c4
1 files changed, 2 insertions, 2 deletions
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);