[vlc-commits] config: fix shadowing

Rémi Denis-Courmont git at videolan.org
Sun Sep 21 10:40:03 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep 18 18:14:43 2014 +0300| [e0618b18a1548be8833676dcdc5567bab1f7a1fa] | committer: Rémi Denis-Courmont

config: fix shadowing

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

 src/config/core.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/config/core.c b/src/config/core.c
index 9882c52..de675c3 100644
--- a/src/config/core.c
+++ b/src/config/core.c
@@ -564,11 +564,11 @@ module_config_t *config_FindConfig (vlc_object_t *p_this, const char *name)
  * \param config start of array of items
  * \param confsize number of items in the array
  */
-void config_Free (module_config_t *config, size_t confsize)
+void config_Free (module_config_t *tab, size_t confsize)
 {
     for (size_t j = 0; j < confsize; j++)
     {
-        module_config_t *p_item = config + j;
+        module_config_t *p_item = &tab[j];
 
         free( p_item->psz_type );
         free( p_item->psz_name );
@@ -598,7 +598,7 @@ void config_Free (module_config_t *config, size_t confsize)
         free (p_item->list_text);
     }
 
-    free (config);
+    free (tab);
 }
 
 #undef config_ResetAll



More information about the vlc-commits mailing list