summaryrefslogtreecommitdiffstats
path: root/curs_lib.c
diff options
context:
space:
mode:
authorPhilipp Klaus Krause <pkk@spth.de>2020-10-14 14:29:27 +0200
committerPhilipp Klaus Krause <pkk@spth.de>2020-10-14 14:29:27 +0200
commit36640a8884aaddcce3eb892282ba88e839bca164 (patch)
treee23f3e620054bc839a2b75f02254e92e7804afeb /curs_lib.c
parent1061dcbcaece508ee536130d1a8681151d682b82 (diff)
Since the string from strerror should never be modified, use const.
Diffstat (limited to 'curs_lib.c')
-rw-r--r--curs_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/curs_lib.c b/curs_lib.c
index ed650caf..01bcde69 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -939,7 +939,7 @@ void mutt_endwin (const char *msg)
void mutt_perror (const char *s)
{
- char *p = strerror (errno);
+ const char *p = strerror (errno);
dprint (1, (debugfile, "%s: %s (errno = %d)\n", s,
p ? p : "unknown error", errno));