diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-17 23:16:16 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:51:25 +0100 |
commit | 12a513b47b1a1f2adeb2cb2a10ac36d02dd44065 (patch) | |
tree | ffd350db11a507777686060b8288b038670f0768 /source4/lib/registry/local.c | |
parent | 57b8a8fd42f5d89f439fd9d0781bd8f561a84131 (diff) | |
download | samba-12a513b47b1a1f2adeb2cb2a10ac36d02dd44065.tar.gz samba-12a513b47b1a1f2adeb2cb2a10ac36d02dd44065.tar.bz2 samba-12a513b47b1a1f2adeb2cb2a10ac36d02dd44065.zip |
r26518: Fix provision of registry using Python.
(This used to be commit 12eb38e553993b2726a803af4ae9c05229d6ebe4)
Diffstat (limited to 'source4/lib/registry/local.c')
-rw-r--r-- | source4/lib/registry/local.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/local.c b/source4/lib/registry/local.c index 5789a94a6d..1ed4f0262e 100644 --- a/source4/lib/registry/local.c +++ b/source4/lib/registry/local.c @@ -321,7 +321,7 @@ WERROR reg_mount_hive(struct registry_context *rctx, mp->path.predefined_key = key_id; mp->prev = mp->next = NULL; mp->key = hive_key; - if (elements != NULL) { + if (elements != NULL && str_list_length(elements) != 0) { mp->path.elements = talloc_array(mp, const char *, str_list_length(elements)); for (i = 0; elements[i] != NULL; i++) { |