s4:registry - "patchfile" - initialise the data blobs
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 22 Mar 2010 12:33:04 +0000 (13:33 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Mon, 22 Mar 2010 12:33:04 +0000 (13:33 +0100)
source4/lib/registry/patchfile.c

index f0c69274fdcb7af6caa4828c09918c54d2d8ce99..9a4c9a6fb76cb742c81ddb4ba9750ea4125ef5eb 100644 (file)
@@ -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);