summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2018-04-26 03:51:47 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-04-26 03:51:47 +0000
commit52919e307f83c2aa945e5d12c82fa4d7189529e8 (patch)
tree2099a96b4d325dad88fd01cd85652af119339b3c
parent077f0221942194640f8fa422580c62b27f938003 (diff)
parentbb2dbfad827bc8e27a2a4e8de59c971ab5043e82 (diff)
Merge "Add support for multiple variables in core definition"
-rw-r--r--VNFs/DPPD-PROX/cfgfile.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/VNFs/DPPD-PROX/cfgfile.c b/VNFs/DPPD-PROX/cfgfile.c
index 0c5950e4..b15fc0ad 100644
--- a/VNFs/DPPD-PROX/cfgfile.c
+++ b/VNFs/DPPD-PROX/cfgfile.c
@@ -191,9 +191,10 @@ static struct cfg_section *cfg_check_section(char *buffer, struct cfg_section *p
/* only numeric characters are valid for section index */
char val[MAX_CFG_STRING_LEN];
- if (pend[0] == '$')
- parse_single_var(val, sizeof(val), pend);
- else
+ if (pend[0] == '$') {
+ if (parse_vars(val, sizeof(val), pend))
+ return NULL;
+ } else
strncpy(val, pend, sizeof(val));
for (len = 0; val[len] != '\0'; ++len) {