From d13bbcf9e35deed8a7ad2b4e37bea56832ba3563 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 27 Sep 2004 04:00:23 +0000 Subject: r2672: don't call a variable "dup" as that conflicts with a standard system call name (This used to be commit 015db2ed8cdde6d6eb79857cb9b6d72185382acc) --- source4/lib/registry/common/reg_interface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4') 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; } -- cgit