[vlc-commits] Avoid useless assignment

Rémi Denis-Courmont git at videolan.org
Wed Jan 19 23:09:58 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jan 19 23:46:53 2011 +0200| [19ae84b430735669ce17b1287047e21650be1356] | committer: Rémi Denis-Courmont

Avoid useless assignment

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

 modules/demux/playlist/b4s.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/demux/playlist/b4s.c b/modules/demux/playlist/b4s.c
index 0d550c4..f040c15 100644
--- a/modules/demux/playlist/b4s.c
+++ b/modules/demux/playlist/b4s.c
@@ -80,9 +80,7 @@ static int Demux( demux_t *p_demux )
 
     input_item_t *p_current_input = GetCurrentItem(p_demux);
 
-    psz_elname = stream_ReadLine( p_demux->s );
-    free( psz_elname );
-    psz_elname = NULL;
+    free( stream_ReadLine( p_demux->s ) );
 
     p_xml_reader = xml_ReaderCreate( p_demux, p_demux->s );
     if( !p_xml_reader )



More information about the vlc-commits mailing list