]> git.sesse.net Git - vlc/commitdiff
Fix warning
authorChristophe Mutricy <xtophe@videolan.org>
Fri, 11 Jul 2008 19:02:08 +0000 (20:02 +0100)
committerChristophe Mutricy <xtophe@videolan.org>
Fri, 11 Jul 2008 20:07:42 +0000 (21:07 +0100)
modules/demux/mp4/mp4.c

index a3fdcd28d4e038c4aa9bafc175c35f8e00b6dd14..7b98feeedbbe06ee0485a06eebd64a215781a0ad 100644 (file)
@@ -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;