Skip to content

Commit bb72f27

Browse files
committed
Merge branch 'devel'
2 parents 21f5a09 + 2b97eac commit bb72f27

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set(CMAKE_MACOSX_RPATH TRUE)
1111
# set version
1212
set(LIBYANG_MAJOR_VERSION 0)
1313
set(LIBYANG_MINOR_VERSION 13)
14-
set(LIBYANG_MICRO_VERSION 63)
14+
set(LIBYANG_MICRO_VERSION 64)
1515
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
1616
set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION})
1717
configure_file(${PROJECT_SOURCE_DIR}/src/libyang.h.in ${PROJECT_SOURCE_DIR}/src/libyang.h)

src/resolve.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2580,8 +2580,8 @@ resolve_partial_json_data_nodeid(const char *nodeid, const char *llist_value, st
25802580
}
25812581
}
25822582

2583-
/* make value canonical */
2584-
if ((llist->value_type & LY_TYPE_IDENT)
2583+
/* make value canonical (remove module name prefix) unless it was specified with it */
2584+
if (!strchr(llist_value, ':') && (llist->value_type & LY_TYPE_IDENT)
25852585
&& !strncmp(llist->value_str, lyd_node_module(sibling)->name, strlen(lyd_node_module(sibling)->name))
25862586
&& (llist->value_str[strlen(lyd_node_module(sibling)->name)] == ':')) {
25872587
data_val = llist->value_str + strlen(lyd_node_module(sibling)->name) + 1;

0 commit comments

Comments
 (0)