diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index d05ea34a1..f198df497 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -111,8 +111,7 @@ const char* neutrinoMode_to_string(int mode) return "NO_REZAP"; default: s << std::hex << mode; - std::string res = s.str(); - return res.c_str(); + return s.str().c_str(); } }