[Libreoffice-commits] online.git: loolwsd/Log.cpp

Miklos Vajna vmiklos at collabora.co.uk
Mon Apr 18 06:40:23 UTC 2016


 loolwsd/Log.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b1b947cfb3c324c76385b5b98e4e1e9b683a8be9
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Mon Apr 18 08:39:54 2016 +0200

    loolwsd: fix -Werror,-Wlogical-not-parentheses
    
    Change-Id: I035347339cf789e49994640b03f239a3e161f9b7

diff --git a/loolwsd/Log.cpp b/loolwsd/Log.cpp
index fb85a48..c40cb11 100644
--- a/loolwsd/Log.cpp
+++ b/loolwsd/Log.cpp
@@ -74,7 +74,7 @@ namespace Log
         usec %= (one_s);
 
         char procName[32]; // we really need only 16
-        if (!prctl(PR_GET_NAME, reinterpret_cast<unsigned long>(procName), 0, 0, 0) == 0)
+        if (prctl(PR_GET_NAME, reinterpret_cast<unsigned long>(procName), 0, 0, 0) != 0)
             strcpy(procName, "<noid>");
 
         const char *appName = (Source.inited ? Source.id.c_str() : "<shutdown>");


More information about the Libreoffice-commits mailing list