r2672: don't call a variable "dup" as that conflicts with a standard system call...
authorAndrew Tridgell <tridge@samba.org>
Mon, 27 Sep 2004 04:00:23 +0000 (04:00 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:20 +0000 (12:59 -0500)
(This used to be commit 015db2ed8cdde6d6eb79857cb9b6d72185382acc)

source4/lib/registry/common/reg_interface.c

index ba92369194c998e374054bfaed141b6d3a732766..c55ecd5a41f8717ab15f190f2cab3aa08557dc6d 100644 (file)
@@ -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;
 }