r14598: 'logfile' may be a poor choice for a global variable name, but for now
authorAndrew Bartlett <abartlet@samba.org>
Tue, 21 Mar 2006 00:04:41 +0000 (00:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:58:59 +0000 (13:58 -0500)
don't shadow it.

Andrew Bartlett
(This used to be commit ace171f94c57da7b13c147c6e286e9e183df0745)

source4/lib/cmdline/popt_common.c

index 33959874b74b305600cb8c387a082761369c0156..fb6ba722dee15263d709d2c59bb22f5c7ee8f0f1 100644 (file)
@@ -99,9 +99,9 @@ static void popt_common_callback(poptContext con,
 
        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;