From 65f055b4500f7d441c19fffa2deaebf855a81372 Mon Sep 17 00:00:00 2001 From: "Enrico M. Crisostomo" Date: Sat, 23 Jun 2018 10:41:31 +0200 Subject: [PATCH] Rogue pointer was returned in exception what() --- libfswatch/src/libfswatch/c++/libfswatch_exception.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfswatch/src/libfswatch/c++/libfswatch_exception.cpp b/libfswatch/src/libfswatch/c++/libfswatch_exception.cpp index 3450f3a..0e1cd66 100644 --- a/libfswatch/src/libfswatch/c++/libfswatch_exception.cpp +++ b/libfswatch/src/libfswatch/c++/libfswatch_exception.cpp @@ -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