@@ -420,7 +420,7 @@ lyplg_ext_sprinter_ctree_add_ext_nodes(const struct lyspr_tree_ctx *ctx, struct
420420 uint32_t i ;
421421 struct lysc_node * schema ;
422422
423- LY_CHECK_ARG_RET2 (NULL , ctx , ext , LY_EINVAL );
423+ LY_CHECK_ARG_RET (NULL , ctx , ext , LY_EINVAL );
424424
425425 LY_ARRAY_FOR (ext -> substmts , i ) {
426426 switch (ext -> substmts [i ].stmt ) {
@@ -458,7 +458,7 @@ lyplg_ext_sprinter_ptree_add_ext_nodes(const struct lyspr_tree_ctx *ctx, struct
458458 uint32_t i ;
459459 struct lysp_node * schema ;
460460
461- LY_CHECK_ARG_RET2 (NULL , ctx , ext , LY_EINVAL );
461+ LY_CHECK_ARG_RET (NULL , ctx , ext , LY_EINVAL );
462462
463463 LY_ARRAY_FOR (ext -> substmts , i ) {
464464 switch (ext -> substmts [i ].stmt ) {
@@ -494,7 +494,7 @@ lyplg_ext_sprinter_ctree_add_nodes(const struct lyspr_tree_ctx *ctx, struct lysc
494494{
495495 struct lyspr_tree_schema * new ;
496496
497- LY_CHECK_ARG_RET1 (NULL , ctx , LY_EINVAL );
497+ LY_CHECK_ARG_RET (NULL , ctx , LY_EINVAL );
498498
499499 if (!nodes ) {
500500 return LY_SUCCESS ;
@@ -514,7 +514,7 @@ lyplg_ext_sprinter_ptree_add_nodes(const struct lyspr_tree_ctx *ctx, struct lysp
514514{
515515 struct lyspr_tree_schema * new ;
516516
517- LY_CHECK_ARG_RET1 (NULL , ctx , LY_EINVAL );
517+ LY_CHECK_ARG_RET (NULL , ctx , LY_EINVAL );
518518
519519 if (!nodes ) {
520520 return LY_SUCCESS ;
@@ -531,7 +531,7 @@ lyplg_ext_sprinter_ptree_add_nodes(const struct lyspr_tree_ctx *ctx, struct lysp
531531LIBYANG_API_DECL LY_ERR
532532lyplg_ext_sprinter_tree_set_priv (const struct lyspr_tree_ctx * ctx , void * plugin_priv , void (* free_clb )(void * plugin_priv ))
533533{
534- LY_CHECK_ARG_RET1 (NULL , ctx , LY_EINVAL );
534+ LY_CHECK_ARG_RET (NULL , ctx , LY_EINVAL );
535535
536536 ((struct lyspr_tree_ctx * )ctx )-> plugin_priv = plugin_priv ;
537537 ((struct lyspr_tree_ctx * )ctx )-> free_plugin_priv = free_clb ;
@@ -636,6 +636,8 @@ lyplg_ext_parsed_get_storage(const struct lysc_ext_instance *ext, int stmt, uint
636636 enum ly_stmt match = 0 ;
637637 void * * s_p = NULL ;
638638
639+ LY_CHECK_ARG_RET (NULL , ext , ext -> module -> parsed , LY_EINVAL );
640+
639641 /* find the parsed ext instance */
640642 LY_ARRAY_FOR (ext -> module -> parsed -> exts , u ) {
641643 extp = & ext -> module -> parsed -> exts [u ];
0 commit comments