From 4c1b96c30721f78d9251a8074d4d516c37e755b9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Nov 2008 14:55:23 +0100 Subject: decoder: make the suffixes and mime_types arrays really const The strings were constant, but the pointers weren't. C syntax is somewhat tricky.. --- src/decoder/wavpack_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/decoder/wavpack_plugin.c') diff --git a/src/decoder/wavpack_plugin.c b/src/decoder/wavpack_plugin.c index c0fb8898d..ef2ea6a99 100644 --- a/src/decoder/wavpack_plugin.c +++ b/src/decoder/wavpack_plugin.c @@ -559,8 +559,8 @@ wavpack_filedecode(struct decoder *decoder, const char *fname) return true; } -static char const *wavpackSuffixes[] = { "wv", NULL }; -static char const *wavpackMimeTypes[] = { "audio/x-wavpack", NULL }; +static char const *const wavpackSuffixes[] = { "wv", NULL }; +static char const *const wavpackMimeTypes[] = { "audio/x-wavpack", NULL }; const struct decoder_plugin wavpackPlugin = { .name = "wavpack", -- cgit v1.2.3