summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2023-08-06 14:56:46 +0100
committerColin Watson <cjwatson@debian.org>2023-08-06 14:56:46 +0100
commitea21917941abb39fdc7c2f746750402b16f397b2 (patch)
tree3e0bfaf079bd7c6b53889e7a45a0adc19f028914
parentbfa3d08c0d33447dd6df2e24222336e573a914e8 (diff)
Declare variable as const
* lib/util.c (init_locale): Declare `locale` as const.
-rw-r--r--lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.c b/lib/util.c
index 28a4487b..2f971822 100644
--- a/lib/util.c
+++ b/lib/util.c
@@ -258,7 +258,7 @@ char *lang_dir (const char *filename)
void init_locale (void)
{
- char *locale = setlocale (LC_ALL, "");
+ const char *locale = setlocale (LC_ALL, "");
if (!locale &&
!getenv ("MAN_NO_LOCALE_WARNING") &&
!getenv ("DPKG_RUNNING_VERSION"))