diff --git a/apps/netconf/netconf_plugin.c b/apps/netconf/netconf_plugin.c index d5b3f427..cd169b77 100644 --- a/apps/netconf/netconf_plugin.c +++ b/apps/netconf/netconf_plugin.c @@ -219,7 +219,7 @@ netconf_plugin_callbacks(clicon_handle h, yang_stmt *yinput; yang_stmt *youtput; cxobj *xoutput; - cbuf *cb; + cbuf *cb = NULL; if (deps != NULL){ nreg = deps; diff --git a/lib/src/clixon_yang.c b/lib/src/clixon_yang.c index 676b1c42..fa9e6867 100644 --- a/lib/src/clixon_yang.c +++ b/lib/src/clixon_yang.c @@ -1741,7 +1741,7 @@ schema_nodeid_vec(yang_node *yn, int retval = -1; char *arg; yang_node *ynext; - char *nodeid; + char *nodeid = NULL; int i; yang_stmt *ys; int match; @@ -1788,7 +1788,7 @@ schema_nodeid_vec(yang_node *yn, if (yang_schemanode((yang_stmt*)ynext)) *yres = (yang_stmt*)ynext; else - clicon_debug(1, "%s not schema node", nodeid); + clicon_debug(1, "%s not schema node", arg); goto ok; } /* recursive call using ynext */