提交 fc386676 编写于 作者: Y yangwenjun

fix namespace list init problem

Signed-off-by: Nyangwenjun <yangwenjun13@huawei.com>
上级 fcfe2e92
......@@ -238,6 +238,7 @@ static void init_namespace(struct dso *app)
app_path[1] = 0;
}
init_default_namespace(app);
nslist *nsl = nslist_init();
ns_configor *conf = configor_init();
int ret = conf->parse(NULL, app_path);
if (ret < 0) {
......@@ -248,7 +249,6 @@ static void init_namespace(struct dso *app)
ns_t *d_ns = get_default_ns();
set_ns_attrs(d_ns, conf);
/* Init other namespace */
nslist *nsl = nslist_init();
if (!nsl) {
configor_free();
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册