[vlc-devel] commit: No need to memset val to 0 because the variable is initialized just after (the ( Rémi Duraffort )

git version control git at videolan.org
Fri Jul 24 13:43:14 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 24 13:16:06 2009 +0200| [f042553088c5c189d64f47b0d1668ec7557821d4] | committer: Rémi Duraffort 

No need to memset val to 0 because the variable is initialized just after (the
only case without initialization is for a void variable in which case the val
variable isn't used)

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

 src/misc/variables.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/misc/variables.c b/src/misc/variables.c
index 5b9ef21..864089b 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -230,7 +230,6 @@ int __var_Create( vlc_object_t *p_this, const char *psz_name, int i_type )
     p_var->psz_text = NULL;
 
     p_var->i_type = i_type & ~VLC_VAR_DOINHERIT;
-    memset( &p_var->val, 0, sizeof(vlc_value_t) );
 
     p_var->i_usage = 1;
 




More information about the vlc-devel mailing list