diff options
Diffstat (limited to 'accel-pppd/log.c')
-rw-r--r-- | accel-pppd/log.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/log.c b/accel-pppd/log.c index e1dd6d06..43e98a97 100644 --- a/accel-pppd/log.c +++ b/accel-pppd/log.c @@ -163,6 +163,8 @@ void __export log_debug(const char *fmt,...) void __export log_debug2(const char *fmt,...) { va_list ap; + if (!debug_file) + return; va_start(ap, fmt); vfprintf(debug_file, fmt, ap); va_end(ap); |