diff options
author | Colin Watson <cjwatson@debian.org> | 2023-08-06 14:56:46 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2023-08-06 14:56:46 +0100 |
commit | ea21917941abb39fdc7c2f746750402b16f397b2 (patch) | |
tree | 3e0bfaf079bd7c6b53889e7a45a0adc19f028914 | |
parent | bfa3d08c0d33447dd6df2e24222336e573a914e8 (diff) |
Declare variable as const
* lib/util.c (init_locale): Declare `locale` as const.
-rw-r--r-- | lib/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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")) |