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/oggvorbis_plugin.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/decoder/oggvorbis_plugin.c') diff --git a/src/decoder/oggvorbis_plugin.c b/src/decoder/oggvorbis_plugin.c index 4531aac40..14cb48278 100644 --- a/src/decoder/oggvorbis_plugin.c +++ b/src/decoder/oggvorbis_plugin.c @@ -368,11 +368,13 @@ oggvorbis_try_decode(struct input_stream *inStream) return ogg_stream_type_detect(inStream) == VORBIS; } -static const char *oggvorbis_Suffixes[] = { "ogg","oga", NULL }; -static const char *oggvorbis_MimeTypes[] = { "application/ogg", - "audio/x-vorbis+ogg", - "application/x-ogg", - NULL }; +static const char *const oggvorbis_Suffixes[] = { "ogg","oga", NULL }; +static const char *const oggvorbis_MimeTypes[] = { + "application/ogg", + "audio/x-vorbis+ogg", + "application/x-ogg", + NULL +}; const struct decoder_plugin oggvorbisPlugin = { .name = "oggvorbis", -- cgit v1.2.3