Rogue pointer was returned in exception what()

This commit is contained in:
Enrico M. Crisostomo
2018-06-23 10:41:31 +02:00
parent 6f36e9dfa1
commit 65f055b450

View File

@@ -29,7 +29,7 @@ namespace fsw
const char *libfsw_exception::what() const noexcept
{
return (string(_("Error: ")) + this->cause).c_str();
return this->cause.c_str();
}
int libfsw_exception::error_code() const noexcept