[vlc-commits] fetcher: fix setting pointer to out of scope var (cid #1215273)

Francois Cartegnie git at videolan.org
Sat May 24 17:28:59 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat May 24 16:44:34 2014 +0200| [8f50acc100259bf131f6ee9355baaa18a890054c] | committer: Francois Cartegnie

fetcher: fix setting pointer to out of scope var (cid #1215273)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8f50acc100259bf131f6ee9355baaa18a890054c
---

 src/playlist/fetcher.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/playlist/fetcher.c b/src/playlist/fetcher.c
index efb0c2a..eb86994 100644
--- a/src/playlist/fetcher.c
+++ b/src/playlist/fetcher.c
@@ -226,7 +226,7 @@ static int FindArt( playlist_fetcher_t *p_fetcher, input_item_t *p_item )
                 }
                 msg_Dbg( p_fetcher->object,
                          " will search at higher scope, if possible" );
-                p_album = &album;
+                p_album = &p_fetcher->albums.p_elems[fe_idx];
                 break;
             }
         FOREACH_END();



More information about the vlc-commits mailing list