X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/106005004ec79d27c897a338a80eca8941208914..27d3cdbc943a57d64f4f2a35a4f1e1b15d9ca41f:/log.c diff --git a/log.c b/log.c index a5867932..a3f77874 100644 --- a/log.c +++ b/log.c @@ -63,12 +63,14 @@ void log_open(void) static int initialised; int options = LOG_PID; time_t t; + char *logf; if (initialised) return; initialised = 1; - if (lp_log_file()) { - logfile = fopen(lp_log_file(), "a"); + logf = lp_log_file(); + if (logf && *logf) { + logfile = fopen(logf, "a"); return; }