From 591846cd216928ab2102918580dc877ff31dfed4 Mon Sep 17 00:00:00 2001 From: Giuseppe Della Ricca Date: Tue, 2 Nov 2021 20:43:36 +0100 Subject: [PATCH] [XrdThrottle] do not initialise a string with a null pointer Fix for https://github.com/xrootd/xrootd/issues/1544 --- src/XrdThrottle/XrdThrottleFile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XrdThrottle/XrdThrottleFile.cc b/src/XrdThrottle/XrdThrottleFile.cc index afa4c493e2b..27d4d1a83e1 100644 --- a/src/XrdThrottle/XrdThrottleFile.cc +++ b/src/XrdThrottle/XrdThrottleFile.cc @@ -32,7 +32,7 @@ File::File(const char *user, m_sfs(sfs), #endif m_uid(0), - m_user(user), + m_user(user ? user : ""), m_throttle(throttle), m_eroute(eroute) {}