Optimize get autocli config
This commit is contained in:
parent
7e1a00669c
commit
c57188992b
1 changed files with 3 additions and 2 deletions
|
|
@ -572,8 +572,9 @@ clicon_conf_autocli(clixon_handle h)
|
||||||
{
|
{
|
||||||
cxobj *xconfig = NULL;
|
cxobj *xconfig = NULL;
|
||||||
|
|
||||||
if ((xconfig = clicon_conf_xml(h)) != NULL) /* Get local config */
|
if ((xconfig = clicon_conf_xml(h)) != NULL){ /* Get local config */
|
||||||
return xpath_first(xconfig, NULL, "autocli");
|
return xml_find_type(xconfig, NULL, "autocli", CX_ELMNT);
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue