summaryrefslogtreecommitdiff
path: root/src/totem-uri.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2009-01-06 13:30:31 +0000
committerBastien Nocera <hadess@src.gnome.org>2009-01-06 13:30:31 +0000
commit9446645ab65d3f0edeabb58887f23e5174300583 (patch)
treed0a85115353e29aec0045e77739617104593e334 /src/totem-uri.c
parent3ec69d8ef0754269f4451efaacabd7860cebed5d (diff)
downloadtotem-9446645ab65d3f0edeabb58887f23e5174300583.tar.gz
Reduce the scope of subtitle_ext_upper
2009-01-06 Bastien Nocera <hadess@hadess.net> * src/totem-uri.c (totem_uri_get_subtitle_for_uri): Reduce the scope of subtitle_ext_upper svn path=/trunk/; revision=5900
Diffstat (limited to 'src/totem-uri.c')
-rw-r--r--src/totem-uri.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/totem-uri.c b/src/totem-uri.c
index 08590ad1b..021a4eabf 100644
--- a/src/totem-uri.c
+++ b/src/totem-uri.c
@@ -292,7 +292,7 @@ totem_uri_exists (const char *uri)
static char *
totem_uri_get_subtitle_for_uri (const char *uri)
{
- char *subtitle, *subtitle_ext_upper;
+ char *subtitle;
guint len, i;
gint suffix;
@@ -323,6 +323,7 @@ totem_uri_get_subtitle_for_uri (const char *uri)
/* Search for any files with one of our known subtitle extensions */
for (i = 0; i < G_N_ELEMENTS (subtitle_ext) ; i++) {
+ char *subtitle_ext_upper;
memcpy (subtitle + suffix + 1, subtitle_ext[i], 3);
if (totem_uri_exists (subtitle))