From: Andre Date: Wed, 28 Jun 2006 17:38:42 +0000 (+0200) Subject: client: do not ignore startup log messages X-Git-Tag: v0.2.14~59^2~16 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=861631dded9580da5f1a840bfdf0153f9bc60d0c 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. --- 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);