[vlc-commits] access: rist: remove useless memset

Zhao Zhili git at videolan.org
Thu Nov 15 09:19:29 CET 2018


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Tue Nov 13 15:35:15 2018 +0800| [b72164d2c788524601118cebc0e63fbf6bde4375] | committer: Thomas Guillem

access: rist: remove useless memset

Since p_sys is created by vlc_obj_calloc.

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b72164d2c788524601118cebc0e63fbf6bde4375
---

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

diff --git a/modules/access/rist.c b/modules/access/rist.c
index 94103f7293..1e5ef5d613 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 )



More information about the vlc-commits mailing list