summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/registry/common/reg_interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/registry/common/reg_interface.c b/source4/lib/registry/common/reg_interface.c
index ba92369194..c55ecd5a41 100644
--- a/source4/lib/registry/common/reg_interface.c
+++ b/source4/lib/registry/common/reg_interface.c
@@ -482,10 +482,10 @@ WERROR reg_key_add_name_recursive(struct registry_key *parent, const char *path)
{
struct registry_key *cur, *prevcur = parent;
WERROR error = WERR_OK;
- char *dup, *begin, *end;
+ char *dups, *begin, *end;
TALLOC_CTX *mem_ctx = talloc_init("add_recursive");
- begin = dup = strdup(path);
+ begin = dups = strdup(path);
while(1) {
end = strchr(begin, '\\');
@@ -513,7 +513,7 @@ WERROR reg_key_add_name_recursive(struct registry_key *parent, const char *path)
begin = end+1;
prevcur = cur;
}
- SAFE_FREE(dup);
+ SAFE_FREE(dups);
talloc_destroy(mem_ctx);
return error;
}