From ad344e9d1d4c1d04582cdb0ada46dfbeb5ec52e0 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 29 Jul 2006 14:37:47 +0000
Subject: [PATCH] make bad_mbchar a static const char* const in chars.c, as its
 value doesn't change

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3823 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog   | 2 ++
 src/chars.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 2db7e6f2..14df8f2b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -49,6 +49,8 @@ CVS code -
 	  UTF-8 support.  Changes to main() and configure.ac. (DLR)
 	- Fix punctuation relating to "i.e." in various comments and
 	  documentation. (Benno Schulenberg and DLR)
+	- Make bad_mbchar a static const char* const in chars.c, as its
+	  value doesn't change. (DLR)
 - browser.c:
   do_browser()
 	- Refactor the mouse support, modeling it after do_mouse() for
diff --git a/src/chars.c b/src/chars.c
index e1afaa2e..1f651264 100644
--- a/src/chars.c
+++ b/src/chars.c
@@ -41,7 +41,7 @@ static const wchar_t bad_wchar = 0xFFFD;
 	 * Unicode FFFD (Replacement Character), unless we're
 	 * determining if it's a control character or searching for a
 	 * match to it. */
-static const char *bad_mbchar = "\xEF\xBF\xBD";
+static const char *const bad_mbchar = "\xEF\xBF\xBD";
 static const int bad_mbchar_len = 3;
 
 /* Enable UTF-8 support. */
-- 
GitLab