aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-log.c')
-rw-r--r--camel/camel-log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/camel/camel-log.c b/camel/camel-log.c
index fba71e9414..59ce5573b2 100644
--- a/camel/camel-log.c
+++ b/camel/camel-log.c
@@ -24,12 +24,15 @@
#include "camel-log.h"
int camel_debug_level = 10;
-FILE *camel_log_file_descriptor = stderr;
+FILE *camel_log_file_descriptor = NULL;
void
camel_log(CamelLogLevel level, const gchar *format, ... )
{
va_list args;
+ if (camel_log_file_descriptor == NULL)
+ camel_log_file_descriptor = stderr;
+
if (level<=camel_debug_level)
{
va_start(args, format);