summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/registry/reg_backend_nt4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/reg_backend_nt4.c b/source4/lib/registry/reg_backend_nt4.c
index a9759b8e68..bf08bc6077 100644
--- a/source4/lib/registry/reg_backend_nt4.c
+++ b/source4/lib/registry/reg_backend_nt4.c
@@ -473,7 +473,7 @@ static WERROR regf_get_subkey_by_index (TALLOC_CTX *ctx, const struct registry_k
{
DATA_BLOB data;
struct nk_block *nk = key->backend_data;
- uint32_t key_off;
+ uint32_t key_off=0;
if (idx >= nk->num_subkeys)
return WERR_NO_MORE_ITEMS;