diff options
author | Philipp Klaus Krause <pkk@spth.de> | 2020-10-14 10:45:34 +0200 |
---|---|---|
committer | Philipp Klaus Krause <pkk@spth.de> | 2020-10-14 10:45:34 +0200 |
commit | 894c45b308c98852769263d98a18e517183f414b (patch) | |
tree | 4981410b003cb23b600964439e143286004e2b5a /lib/tools | |
parent | b74110309f8baafd57a1373677d8d8a09afdc61c (diff) | |
download | erlang-894c45b308c98852769263d98a18e517183f414b.tar.gz |
Since the string from strerror should never be modified, use const.
Diffstat (limited to 'lib/tools')
-rw-r--r-- | lib/tools/c_src/erl_memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tools/c_src/erl_memory.c b/lib/tools/c_src/erl_memory.c index 13a3fccc6d..d52203c7cd 100644 --- a/lib/tools/c_src/erl_memory.c +++ b/lib/tools/c_src/erl_memory.c @@ -1859,7 +1859,7 @@ error_string(int error) error_str = unknown_error; if (error > 0) { - char *str = strerror(error); + const char *str = strerror(error); if (str) error_str = str; } |