From e0618b18a1548be8833676dcdc5567bab1f7a1fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Thu, 18 Sep 2014 18:14:43 +0300 Subject: [PATCH] config: fix shadowing --- 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 9882c525cc..de675c39db 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