From c7e36118fd2daa1a72287b4ea3ce566ff8548824 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Sat, 10 Sep 2005 15:22:51 +0000 Subject: [PATCH] variables.c: void the buffer after the memmove to avoid reusing previous values --- src/misc/variables.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/misc/variables.c b/src/misc/variables.c index ffdc9ca4be..9df96e03a2 100644 --- a/src/misc/variables.c +++ b/src/misc/variables.c @@ -193,6 +193,7 @@ int __var_Create( vlc_object_t *p_this, const char *psz_name, int i_type ) p_this->i_vars++; p_var = &p_this->p_vars[i_new]; + memset( p_var, 0, sizeof(*p_var) ); p_var->i_hash = HashString( psz_name ); p_var->psz_name = strdup( psz_name ); -- 2.39.2