Author: abartlet
Date: 2006-03-21 00:04:41 +0000 (Tue, 21 Mar 2006)
New Revision: 14598

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14598

Log:
'logfile' may be a poor choice for a global variable name, but for now
don't shadow it.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/lib/cmdline/popt_common.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/cmdline/popt_common.c
===================================================================
--- branches/SAMBA_4_0/source/lib/cmdline/popt_common.c 2006-03-21 00:04:05 UTC 
(rev 14597)
+++ branches/SAMBA_4_0/source/lib/cmdline/popt_common.c 2006-03-21 00:04:41 UTC 
(rev 14598)
@@ -99,9 +99,9 @@
 
        case 'l':
                if (arg) {
-                       char *logfile = talloc_asprintf(NULL, "%s/log.%s", arg, 
pname);
-                       lp_set_cmdline("log file", logfile);
-                       talloc_free(logfile);
+                       char *new_logfile = talloc_asprintf(NULL, "%s/log.%s", 
arg, pname);
+                       lp_set_cmdline("log file", new_logfile);
+                       talloc_free(new_logfile);
                }
                break;
                

Reply via email to