diff --git a/src/iosource/Manager.cc b/src/iosource/Manager.cc index 1161171743..b6c9b6663c 100644 --- a/src/iosource/Manager.cc +++ b/src/iosource/Manager.cc @@ -324,8 +324,8 @@ static std::pair split_prefix(std::string path) PktSrc* Manager::OpenPktSrc(const std::string& path, bool is_live) { std::pair t = split_prefix(path); - std::string prefix = t.first; - std::string npath = t.second; + const auto& prefix = t.first; + const auto& npath = t.second; // Find the component providing packet sources of the requested prefix.