From 09d63524e6c5d6196082a55fa4775635da8a9794 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 27 May 2011 11:34:16 +0000 Subject: [PATCH] In LogPutString(), don't bother looking at pszText when not actually logging anything --- w32log.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/w32log.c b/w32log.c index 60943384..57f370eb 100644 --- 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; } -- 2.39.2