In LogPutString(), don't bother looking at pszText when not actually logging anything
authorFabian Keil <fk@fabiankeil.de>
Fri, 27 May 2011 11:34:16 +0000 (11:34 +0000)
committerFabian Keil <fk@fabiankeil.de>
Fri, 27 May 2011 11:34:16 +0000 (11:34 +0000)
w32log.c

index 6094338..57f370e 100644 (file)
--- a/w32log.c
+++ b/w32log.c
@@ -1,4 +1,4 @@
-const char w32log_rcs[] = "$Id: w32log.c,v 1.37 2010/06/13 12:31:04 fabiankeil Exp $";
+const char w32log_rcs[] = "$Id: w32log.c,v 1.38 2010/08/14 23:28:52 ler762 Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/w32log.c,v $
@@ -370,12 +370,12 @@ int LogPutString(const char *pszText)
    int i;
    int result = 0;
 
-   if (pszText == NULL || strlen(pszText) == 0)
+   if (!g_bLogMessages)
    {
       return 1;
    }
 
-   if (!g_bLogMessages)
+   if (pszText == NULL || strlen(pszText) == 0)
    {
       return 1;
    }