r15878: Add explicit initialization to make the IBM checker happy.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 24 May 2006 23:09:29 +0000 (23:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:08:36 +0000 (14:08 -0500)
(This used to be commit 3a5d3eb62c61d264fb583d2c94e3b3446988051b)

source4/lib/registry/reg_backend_nt4.c

index c5f07e7b190eca4556bf03b176f79a6b0211905f..d1d19f904b724091b2ca3bd95c55d79d8bb440f8 100644 (file)
@@ -903,11 +903,11 @@ static uint32_t lf_add_entry (struct regf_data *regf, uint32_t list_offset, cons
        uint32_t ret;
        struct lf_block lf;
 
+       ZERO_STRUCT(lf);
+
        /* Add to subkeys list */
        if (list_offset == -1) { /* Need to create subkeys list */
                lf.header = "lf";
-               lf.key_count = 0;
-               lf.hr = NULL;
        } else {
                if (!hbin_get_tdr(regf, list_offset, regf, (tdr_pull_fn_t)tdr_pull_lf_block, &lf)) {
                        DEBUG(0, ("Can't get subkeys list\n"));