]> git.sesse.net Git - vlc/commitdiff
variables.c: void the buffer after the memmove to avoid reusing previous values
authorSteve Lhomme <robux@videolan.org>
Sat, 10 Sep 2005 15:22:51 +0000 (15:22 +0000)
committerSteve Lhomme <robux@videolan.org>
Sat, 10 Sep 2005 15:22:51 +0000 (15:22 +0000)
src/misc/variables.c

index ffdc9ca4be5e86cfb10d762b70e2d21ae2a4e14e..9df96e03a28abfbbbb57aac1f4efc8f3a5a9c151 100644 (file)
@@ -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 );