From 861631dded9580da5f1a840bfdf0153f9bc60d0c Mon Sep 17 00:00:00 2001 From: Andre <maan@p133.(none)> Date: Wed, 28 Jun 2006 19:38:42 +0200 Subject: [PATCH] client: do not ignore startup log messages If an error occurs before the private_client_data struct is initialized, the error message is silently ignored. Fix it by always printing the log message if the struct pointer is NULL. --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 95dacd75..88ea5af2 100644 --- a/client.c +++ b/client.c @@ -42,7 +42,7 @@ void para_log(int ll, const char* fmt,...) va_list argp; /* ignore log message if loglevel is not high enough */ - if (!pcd || ll < pcd->conf.loglevel_arg) + if (pcd && ll < pcd->conf.loglevel_arg) return; va_start(argp, fmt); vfprintf(stderr, fmt, argp); -- 2.39.5