diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-10-30 22:40:35 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-10-30 22:40:35 -0700 |
commit | a529fc9d83295fdf9418436b68d056162ba8231b (patch) | |
tree | 97cf66daca3b5e7efb927c7e37fc7515ec8b0ceb /wutil.cpp | |
parent | 173a6a71c03847158a434c3fd63e5759bf933239 (diff) |
Set of fixes for issues identified by cppcheck
Diffstat (limited to 'wutil.cpp')
-rw-r--r-- | wutil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -485,7 +485,7 @@ const wchar_t *wgettext(const wchar_t *in) val = new wcstring(format_string(L"%s", out)); //note that this writes into the map! } errno = err; - return val->c_str(); + return val->c_str(); //looks dangerous but is safe, since the string is stored in the map } const wchar_t *wgetenv(const wcstring &name) |