[vlc-devel] [PATCH 2/2] codec: libass: fix crash in the case of zero attachment
Zhao Zhili
quinkblack at foxmail.com
Thu Sep 20 17:36:03 CEST 2018
---
modules/codec/libass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/libass.c b/modules/codec/libass.c
index 51bc832cbd..e16c1798dc 100644
--- a/modules/codec/libass.c
+++ b/modules/codec/libass.c
@@ -162,7 +162,7 @@ static int Create( vlc_object_t *p_this )
}
/* load attachments */
- input_attachment_t **pp_attachments;
+ input_attachment_t **pp_attachments = NULL;
int i_attachments;
if( decoder_GetInputAttachments( p_dec, &pp_attachments, &i_attachments ))
{
--
2.19.0.rc1
More information about the vlc-devel
mailing list