mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix method returning a reference to a temporary.
Found by cppcheck, via by Arthur Wong.
This commit is contained in:
parent
6218f99b96
commit
ae9e79969e
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ ComponentManager<T, C>::ComponentManager(const string& arg_module, const string&
|
||||||
template <class T, class C>
|
template <class T, class C>
|
||||||
const std::string& ComponentManager<T, C>::GetModule() const
|
const std::string& ComponentManager<T, C>::GetModule() const
|
||||||
{
|
{
|
||||||
return module.c_str();
|
return module;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T, class C>
|
template <class T, class C>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue