Commit ddec4030 authored by Laurent Aimar's avatar Laurent Aimar

A small malloc check.

parent fbc7ad67
......@@ -1190,6 +1190,8 @@ static int ParseMPL2( demux_t *p_demux, subtitle_t *p_subtitle )
return VLC_EGENERIC;
psz_text = malloc( strlen(s) + 1 );
if( !psz_text )
return VLC_ENOMEM;
i_start = 0;
i_stop = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment