summaryrefslogtreecommitdiff
path: root/source4/lib/registry/common/reg_interface.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-27 04:00:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:20 -0500
commitd13bbcf9e35deed8a7ad2b4e37bea56832ba3563 (patch)
tree90b83fa32c570d5b9c199e07a844f96728f596d7 /source4/lib/registry/common/reg_interface.c
parent5b44130afad1bb1764d986de3ef0e8e04b0e7357 (diff)
downloadsamba-d13bbcf9e35deed8a7ad2b4e37bea56832ba3563.tar.gz
samba-d13bbcf9e35deed8a7ad2b4e37bea56832ba3563.tar.bz2
samba-d13bbcf9e35deed8a7ad2b4e37bea56832ba3563.zip
r2672: don't call a variable "dup" as that conflicts with a standard system call name
(This used to be commit 015db2ed8cdde6d6eb79857cb9b6d72185382acc)
Diffstat (limited to 'source4/lib/registry/common/reg_interface.c')
-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;
}