diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-01-16 17:38:11 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-01-16 17:38:11 +0400 |
commit | c3633b1ab2bcd9d3855a88d435378aaa3c14ead9 (patch) | |
tree | 7a49965f23a1da0fa2290a4c5c16a62b734e4e60 /accel-pppd/log.c | |
parent | bf1ccc7f6e7a9dc5a8ba3d8d02b25ad446458840 (diff) | |
download | accel-ppp-c3633b1ab2bcd9d3855a88d435378aaa3c14ead9.tar.gz accel-ppp-c3633b1ab2bcd9d3855a88d435378aaa3c14ead9.zip |
core: fix context unregister bug
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); |