[vlc-devel] [PATCH 1/3] access: rist: memset again is no-op since p_sys is created by vlc_obj_calloc

Zhao Zhili quinkblack at foxmail.com
Tue Nov 13 08:35:15 CET 2018


---
 modules/access/rist.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/access/rist.c b/modules/access/rist.c
index 94103f7..1e5ef5d 100644
--- a/modules/access/rist.c
+++ b/modules/access/rist.c
@@ -998,7 +998,6 @@ static int Open(vlc_object_t *p_this)
 
     p_access->p_sys = p_sys;
 
-    memset(p_sys->sender_name, 0, MAX_CNAME);
     vlc_mutex_init( &p_sys->lock );
 
     if ( vlc_UrlParse( &parsed_url, p_access->psz_url ) == -1 )
-- 
2.9.5





More information about the vlc-devel mailing list