]> git.sesse.net Git - vlc/blobdiff - modules/demux/mp4/mp4.c
Fix warning
[vlc] / 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;