[vlc-devel] [PATCH] input: prevent wild pointer in the case of no attachment

Zhao Zhili quinkblack at foxmail.com
Fri Sep 21 03:41:29 CEST 2018


---
 src/input/input.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/input/input.c b/src/input/input.c
index 3edd584..a0f9c5d 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -3386,6 +3386,7 @@ int input_GetAttachments(input_thread_t *input,
     if (attachments_count <= 0)
     {
         vlc_mutex_unlock(&priv->p_item->lock);
+        *attachments = NULL;
         return 0;
     }
 
-- 
2.9.5





More information about the vlc-devel mailing list