src/setup.c: cleanup -Wcast-qual warning.

Signed-off-by: Andreas Mohr <and@gmx.li>
This commit is contained in:
Andreas Mohr 2016-02-20 16:12:31 +00:00 committed by Andrew Borodin
parent 9a48fb4b0c
commit d033e17a23

View File

@ -998,6 +998,7 @@ load_setup (void)
#ifdef HAVE_CHARSET
char *buffer;
const char *cbuffer;
load_codepages_list ();
#endif /* HAVE_CHARSET */
@ -1118,9 +1119,9 @@ load_setup (void)
is_autodetect_codeset_enabled = TRUE;
g_free (init_translation_table (mc_global.source_codepage, mc_global.display_codepage));
buffer = (char *) get_codepage_id (mc_global.display_codepage);
if (buffer != NULL)
mc_global.utf8_display = str_isutf8 (buffer);
cbuffer = get_codepage_id (mc_global.display_codepage);
if (cbuffer != NULL)
mc_global.utf8_display = str_isutf8 (cbuffer);
#endif /* HAVE_CHARSET */
#ifdef HAVE_ASPELL