Skip to content

Commit d526c93

Browse files
committed
plugins types BUGFIX check errors
1 parent fd5e528 commit d526c93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugins_types.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -967,13 +967,13 @@ lyplg_type_print_val(const struct lysc_node *node, const char *canon, LY_VALUE_F
967967

968968
/* store it in the dictionary, storage will be freed */
969969
if (dyn) {
970-
lydict_insert_zc(node->module->ctx, (char *)v, value);
970+
r = lydict_insert_zc(node->module->ctx, (char *)v, value);
971971
} else {
972-
lydict_dup(node->module->ctx, v, value);
972+
r = lydict_dup(node->module->ctx, v, value);
973973
}
974974

975975
type_plg->free(node->module->ctx, &storage);
976-
return LY_SUCCESS;
976+
return r;
977977
}
978978

979979
LIBYANG_API_DEF LY_ERR

0 commit comments

Comments
 (0)