mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
Fix compiler warnings.
(This used to be commit 3a68613e934e25f2ccfbf5afa5e26b5f47b40a53)
This commit is contained in:
parent
809c4715da
commit
075a9fe96f
@ -41,16 +41,17 @@ static void popt_common_callback(poptContext con,
|
||||
const char *arg, const void *data)
|
||||
{
|
||||
pstring logfile;
|
||||
char *pname;
|
||||
const char *pname;
|
||||
|
||||
/* Find out basename of current program */
|
||||
pname = strrchr_m(poptGetInvocationName(con),'/');
|
||||
|
||||
if(!pname)pname = poptGetInvocationName(con);
|
||||
else pname++;
|
||||
if (!pname)
|
||||
pname = poptGetInvocationName(con);
|
||||
else
|
||||
pname++;
|
||||
|
||||
if (reason == POPT_CALLBACK_REASON_PRE) {
|
||||
pstring logfile;
|
||||
pstr_sprintf(logfile, "%s/log.%s", dyn_LOGFILEBASE, pname);
|
||||
lp_set_logfile(logfile);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user