[sysrepo-devel] sr_xpath_key_value() changes xpath value

Jimmy Jin jjin62 at yahoo.com
Mon Oct 17 22:23:34 UTC 2016


Hi,When I call
char *sr_xpath_key_value(char *xpath, const char *node_name, const char *key_name, sr_xpath_ctx_t *state);

the xpath passed in seems be changed. It truncates the string after the key. Is this expected? I need to duplicate the xpath, in order to preserve the original string.
regards,Jimmy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sysrepo.org/archives/sysrepo-devel/attachments/20161017/44ca250b/attachment.html>


More information about the sysrepo-devel mailing list