aboutsummaryrefslogtreecommitdiffhomepage
path: root/wutil.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-10-30 22:40:35 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-10-30 22:40:35 -0700
commita529fc9d83295fdf9418436b68d056162ba8231b (patch)
tree97cf66daca3b5e7efb927c7e37fc7515ec8b0ceb /wutil.cpp
parent173a6a71c03847158a434c3fd63e5759bf933239 (diff)
Set of fixes for issues identified by cppcheck
Diffstat (limited to 'wutil.cpp')
-rw-r--r--wutil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/wutil.cpp b/wutil.cpp
index d8fe82f7..25c0cec0 100644
--- a/wutil.cpp
+++ b/wutil.cpp
@@ -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)