[vlc-devel] commit: [USF] return if calloc fails. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Thu Oct 16 13:13:51 CEST 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Oct 16 13:11:00 2008 +0200| [e81263cdbde31f66d58abe21369366ebb4c946c0] | committer: Jean-Baptiste Kempf
[USF] return if calloc fails.
Close CID: 171
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e81263cdbde31f66d58abe21369366ebb4c946c0
---
modules/codec/subtitles/subsusf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/codec/subtitles/subsusf.c b/modules/codec/subtitles/subsusf.c
index d300ac0..c088b3d 100644
--- a/modules/codec/subtitles/subsusf.c
+++ b/modules/codec/subtitles/subsusf.c
@@ -643,7 +643,7 @@ static void ParseUSFHeaderTags( decoder_t *p_dec, xml_reader_t *p_xml_reader )
if( ! p_style )
{
free( psz_node );
- break;
+ return VLC_ENOMEM;
}
/* All styles are supposed to default to Default, and then
* one or more settings are over-ridden.
More information about the vlc-devel
mailing list