svn commit: samba r2672 - in branches/SAMBA_4_0/source/lib/registry/common: .

tridge at samba.org tridge at samba.org
Mon Sep 27 04:00:23 GMT 2004


Author: tridge
Date: 2004-09-27 04:00:23 +0000 (Mon, 27 Sep 2004)
New Revision: 2672

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/lib/registry/common&rev=2672&nolog=1

Log:
don't call a variable "dup" as that conflicts with a standard system call name

Modified:
   branches/SAMBA_4_0/source/lib/registry/common/reg_interface.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/registry/common/reg_interface.c
===================================================================
--- branches/SAMBA_4_0/source/lib/registry/common/reg_interface.c	2004-09-27 01:36:19 UTC (rev 2671)
+++ branches/SAMBA_4_0/source/lib/registry/common/reg_interface.c	2004-09-27 04:00:23 UTC (rev 2672)
@@ -482,10 +482,10 @@
 {
 	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 @@
 		begin = end+1;
 		prevcur = cur;
 	}
-	SAFE_FREE(dup);
+	SAFE_FREE(dups);
 	talloc_destroy(mem_ctx);
 	return error;
 }



More information about the samba-cvs mailing list