[X2Go-Commits] [nx-libs] 01/01: nxcomp/src/Log.h: initializing std::string with a NULL pointer is UB, so use an empty string instead.

git-admin at x2go.org git-admin at x2go.org
Mon Dec 25 02:58:47 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x-rpm-debug
in repository nx-libs.

commit 5b9926434d2b982f4a7437b9e63540474b81d927
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Dec 25 02:58:41 2017 +0100

    nxcomp/src/Log.h: initializing std::string with a NULL pointer is UB, so use an empty string instead.
---
 nxcomp/src/Log.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nxcomp/src/Log.h b/nxcomp/src/Log.h
index 819ebd8..eab8266 100644
--- a/nxcomp/src/Log.h
+++ b/nxcomp/src/Log.h
@@ -105,7 +105,7 @@ class NXLogStamp
     }
 
 
-    NXLogStamp(NXLogLevel level, const char *file = NULL, const char *function = NULL, size_t line = 0) : level_(level), file_(file), function_(function), line_(line)
+    NXLogStamp(NXLogLevel level, const char *file = "", const char *function = "", size_t line = 0) : level_(level), file_(file), function_(function), line_(line)
     {
         gettimeofday(&timestamp_, NULL);
     }

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list