[totem-pl-parser] pla: Fix shadowed URI variable



commit f98b409ebf73958c08df191dec2d98e6e35ee0f3
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jan 24 11:39:55 2017 +0100

    pla: Fix shadowed URI variable
    
    Spotted by Alex Larsson in continuous.

 plparse/totem-pl-parser-pla.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plparse/totem-pl-parser-pla.c b/plparse/totem-pl-parser-pla.c
index 049d8ce..bc4f51f 100644
--- a/plparse/totem-pl-parser-pla.c
+++ b/plparse/totem-pl-parser-pla.c
@@ -171,7 +171,7 @@ totem_pl_parser_add_pla (TotemPlParser *parser,
                         gpointer data)
 {
        TotemPlParserResult retval = TOTEM_PL_PARSER_RESULT_UNHANDLED;
-       char *contents, *title, *uri;
+       char *contents, *title, *playlist_uri;
        guint offset, max_entries, entry;
        gsize size;
 
@@ -210,6 +210,7 @@ totem_pl_parser_add_pla (TotemPlParser *parser,
        while (offset + RECORD_SIZE <= size && entry < max_entries) {
                char *path;
                GError *error = NULL;
+               char *uri;
 
                /* path starts at +2, is at most 500 bytes, in big-endian utf16 .. */
                path = g_convert (contents + offset + PATH_OFFSET,
@@ -245,9 +246,9 @@ totem_pl_parser_add_pla (TotemPlParser *parser,
                entry++;
        }
 
-       uri = g_file_get_uri (file);
-       totem_pl_parser_playlist_end (parser, uri);
-       g_free (uri);
+       playlist_uri = g_file_get_uri (file);
+       totem_pl_parser_playlist_end (parser, playlist_uri);
+       g_free (playlist_uri);
 
        g_free (contents);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]