Added / to api-path to xpath conversion

This commit is contained in:
Olof hagsand 2020-03-25 22:11:07 +01:00
parent 4e578b77ee
commit 1079fcad47
3 changed files with 3 additions and 1 deletions

View file

@ -637,6 +637,7 @@ api_path2xpath_cvv(cvec *api_path,
char *namespace = NULL;
cvec *nsc = NULL;
cprintf(xpath, "/");
/* Initialize namespace context */
if ((nsc = xml_nsctx_init(NULL, NULL)) == NULL)
goto done;