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/aac_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/decoder/aac_plugin.c') diff --git a/src/decoder/aac_plugin.c b/src/decoder/aac_plugin.c index 3ae5e3d58..bf4879a19 100644 --- a/src/decoder/aac_plugin.c +++ b/src/decoder/aac_plugin.c @@ -586,8 +586,8 @@ static struct tag *aacTagDup(const char *file) return ret; } -static const char *aac_suffixes[] = { "aac", NULL }; -static const char *aac_mimeTypes[] = { "audio/aac", "audio/aacp", NULL }; +static const char *const aac_suffixes[] = { "aac", NULL }; +static const char *const aac_mimeTypes[] = { "audio/aac", "audio/aacp", NULL }; const struct decoder_plugin aacPlugin = { .name = "aac", -- cgit v1.2.3