From 69b42a43ca4b2d93be203c34f6b45f5de1e32a15 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Thu, 11 Apr 2024 13:13:15 +0800
Subject: [PATCH] Fix logger.c bug

---
 project/socketd/booster/logger.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/project/socketd/booster/logger.c b/project/socketd/booster/logger.c
index 217eb02..ea93dd7 100644
--- a/project/socketd/booster/logger.c
+++ b/project/socketd/booster/logger.c
@@ -4,11 +4,11 @@
  *
  *       Filename:  logger.c
  *    Description:  This file is common logger API functions
- *                 
+ *
  *        Version:  1.0.0(11/08/23)
  *         Author:  Guo Wenxue <guowenxue@gmail.com>
  *      ChangeLog:  1, Release initial version on "11/08/23 16:18:43"
- *                 
+ *
  ********************************************************************************/
 
 #include <stdio.h>
@@ -79,7 +79,7 @@
     }
     else
     {
-        if ( (err = pthread_mutex_unlock(l) != 0) )
+        if ( (err = pthread_mutex_unlock(l)) != 0 )
             log_error("Unable to unlock log lock: %s", strerror(err));
     }
 }

--
Gitblit v1.9.1