From: Christophe Mutricy Date: Fri, 11 Jul 2008 19:02:08 +0000 (+0100) Subject: Fix warning X-Git-Tag: 0.9.0-test2~68 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=208371724fe28e3c4df0d6a741e1d2975b35600e;p=vlc Fix warning --- 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;