Oops, need a temporary when there's no port.
This commit is contained in:
parent
e4223dbcb0
commit
6483b51f24
1 changed files with 2 additions and 2 deletions
|
@ -86,10 +86,10 @@ namespace Reporting
|
|||
|
||||
std::string host = ServerHost();
|
||||
size_t length = ServerHostnameLength();
|
||||
if (length == host.npos)
|
||||
return host.c_str();
|
||||
|
||||
lastHostname = host.substr(0, length);
|
||||
if (length == lastHostname.npos)
|
||||
return lastHostname.c_str();
|
||||
return lastHostname.c_str();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue