From e55277283800bfdfef86485a6b0c7a4e7755a15b Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 13 May 2019 17:49:26 +0100 Subject: Fix an unnecessary string copy when reading the tags. --- src/modules/m_spanningtree/utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index f78b8d4c0..a18ec854d 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -258,13 +258,12 @@ void SpanningTreeUtilities::ReadConfiguration() { ConfigTag* tag = i->second; reference L = new Link(tag); - std::string linkname = tag->getString("name"); - L->Name = linkname.c_str(); irc::spacesepstream sep = tag->getString("allowmask"); for (std::string s; sep.GetToken(s);) L->AllowMasks.push_back(s); + L->Name = tag->getString("name"); L->IPAddr = tag->getString("ipaddr"); L->Port = tag->getUInt("port", 0); L->SendPass = tag->getString("sendpass", tag->getString("password")); -- cgit v1.2.3