[sr-dev] git:tirpi/cfg_framework_multivalue: cfg framework: apply additional var list bugfix

Miklos Tirpak miklos at iptel.org
Wed Sep 29 16:56:29 CEST 2010


Module: sip-router
Branch: tirpi/cfg_framework_multivalue
Commit: 90003ec474ff23b385c4760336671ae8758d2523
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=90003ec474ff23b385c4760336671ae8758d2523

Author: Miklos Tirpak <miklos at iptel.org>
Committer: Miklos Tirpak <miklos at iptel.org>
Date:   Tue Sep 28 17:13:28 2010 +0200

cfg framework: apply additional var list bugfix

The variable list needs to be applied for each group

---

 cfg/cfg_struct.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/cfg/cfg_struct.c b/cfg/cfg_struct.c
index a736d67..10d8ef7 100644
--- a/cfg/cfg_struct.c
+++ b/cfg/cfg_struct.c
@@ -255,11 +255,12 @@ int cfg_shmize(void)
 					group->name_len, group->name);
 			goto error;
 		}
+
+		/* Create the additional group instances with applying
+		the temporary list. */
+		if (apply_add_var_list(block, group))
+			goto error;
 	}
-	/* Create the additional group instances with applying
-	the temporary list. */
-	if (apply_add_var_list(block, group))
-		goto error;
 
 	/* try to fixup the selects that failed to be fixed-up previously */
 	if (cfg_fixup_selects()) goto error;




More information about the sr-dev mailing list