]> git.tue.mpg.de Git - paraslash.git/commitdiff
fix thinko in para_client's para_log()
authorAndre <maan@p133.(none)>
Thu, 15 Jun 2006 08:50:38 +0000 (10:50 +0200)
committerAndre <maan@p133.(none)>
Thu, 15 Jun 2006 08:50:38 +0000 (10:50 +0200)
client.c

index d2f4643372200465b0a576184b9fefe00761f01c..69e0f3d3bf9c7382c3b78c012d5c1bfcd0fb6c7c 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);