[vlc-commits] commit: Fixed allocation failure test in input_item_SetEpg(). ( Laurent Aimar )

git at videolan.org git at videolan.org
Sun Oct 31 13:05:28 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Oct 31 12:40:15 2010 +0100| [9db11bdf3dcaa47be10144e4bd26cdd8da1245a6] | committer: Laurent Aimar 

Fixed allocation failure test in input_item_SetEpg().

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

 src/input/item.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/input/item.c b/src/input/item.c
index ee464d5..e47a1e1 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -744,6 +744,9 @@ void input_item_SetEpg( input_item_t *p_item, const vlc_epg_t *p_update )
 
     vlc_mutex_unlock( &p_item->lock );
 
+    if( !p_epg )
+        return;
+
 #ifdef EPG_DEBUG
     char *psz_epg;
     if( asprintf( &psz_epg, "EPG %s", p_epg->psz_name ? p_epg->psz_name : "unknown" ) < 0 )



More information about the vlc-commits mailing list