From 208371724fe28e3c4df0d6a741e1d2975b35600e Mon Sep 17 00:00:00 2001 From: Christophe Mutricy Date: Fri, 11 Jul 2008 20:02:08 +0100 Subject: [PATCH] Fix warning --- modules/demux/mp4/mp4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c index a3fdcd28d4..7b98feeedb 100644 --- a/modules/demux/mp4/mp4.c +++ b/modules/demux/mp4/mp4.c @@ -403,8 +403,9 @@ static int Open( vlc_object_t * p_this ) if( end ) end[1] = '\0'; else *psz_path = '\0'; - asprintf( &psz_absolute, "%s://%s%s", - p_demux->psz_access, psz_path, psz_ref ); + if( asprintf( &psz_absolute, "%s://%s%s", + p_demux->psz_access, psz_path, psz_ref ) < 0 ) + return VLC_ENOMEM; free( psz_ref ); psz_ref = psz_absolute; -- 2.39.2