Replaced strchr with nodeid_split

Experimental code for replacing identityref lists with module:id instead of prefix:id
This commit is contained in:
Olof hagsand 2019-07-10 17:18:34 +02:00
parent bb04f778ab
commit e44685a100
13 changed files with 348 additions and 182 deletions

View file

@ -530,7 +530,7 @@ yang2cli_var(clicon_handle h,
cbuf *cb)
{
int retval = -1;
char *origtype;
char *origtype = NULL;
yang_stmt *yrestype; /* resolved type */
char *restype; /* resolved type */
cvec *cvv = NULL;
@ -596,6 +596,8 @@ yang2cli_var(clicon_handle h,
}
retval = 0;
done:
if (origtype)
free(origtype);
if (patterns)
cvec_free(patterns);
return retval;