* Fixed: [restconf patch method adds redundant namespaces #235](https://github.com/clicon/clixon/issues/235)
This commit is contained in:
parent
7d59ec1a3a
commit
a122efceff
7 changed files with 43 additions and 40 deletions
|
|
@ -189,7 +189,7 @@ xml_nsctx_get_prefix(cvec *cvv,
|
|||
/*! Set or replace namespace in namespace context
|
||||
* @param[in] cvv Namespace context
|
||||
* @param[in] prefix Namespace prefix, or NULL for default
|
||||
* @param[in] ns Cached namespace to set (assume non-null?)
|
||||
* @param[in] ns Cached namespace to set (assume non-null?)
|
||||
* @retval 0 OK
|
||||
* @retval -1 Error
|
||||
*/
|
||||
|
|
@ -604,6 +604,8 @@ xmlns_set(cxobj *x,
|
|||
* @retval -1 Error
|
||||
* @retval 0 No namespace found
|
||||
* @retval 1 Namespace found, prefix returned in prefixp
|
||||
* @note a namespace can have two or more prefixes, this just returns the first
|
||||
* @see xml2prefixexists to check a specific pair
|
||||
*/
|
||||
int
|
||||
xml2prefix(cxobj *xn,
|
||||
|
|
@ -660,3 +662,4 @@ xml2prefix(cxobj *xn,
|
|||
goto done;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue