]> git.tue.mpg.de Git - paraslash.git/commitdiff
client: do not ignore startup log messages
authorAndre <maan@p133.(none)>
Wed, 28 Jun 2006 17:38:42 +0000 (19:38 +0200)
committerAndre <maan@p133.(none)>
Wed, 28 Jun 2006 17:38:42 +0000 (19:38 +0200)
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

index 95dacd75f8a9d39c0e85f8118481b1600ecc88f8..88ea5af2ca737f2cead9c96fc8c0ec28b523c1da 100644 (file)
--- 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);