diff --git a/apps/backend/backend_plugin.c b/apps/backend/backend_plugin.c index 244196c8..b98c498e 100644 --- a/apps/backend/backend_plugin.c +++ b/apps/backend/backend_plugin.c @@ -124,6 +124,7 @@ clixon_plugin_statedata(clicon_handle h, goto done; if (fn(h, nsc, xpath, x) < 0) goto fail; /* Dont quit here on user callbacks */ + /* if x contains no data, then continue? */ #if 1 if (debug) clicon_log_xml(LOG_DEBUG, x, "%s STATE:", __FUNCTION__); diff --git a/lib/clixon/clixon_err.h b/lib/clixon/clixon_err.h index a77cb956..e9da81b4 100644 --- a/lib/clixon/clixon_err.h +++ b/lib/clixon/clixon_err.h @@ -54,7 +54,7 @@ /* * Types - * Add error here, but must also add an entry in EV variable. + * Add error category here, but must also add an entry in EV variable. */ enum clicon_err{ /* 0 means error not set) */ diff --git a/lib/src/clixon_path.c b/lib/src/clixon_path.c index 138da6f2..01ce4751 100644 --- a/lib/src/clixon_path.c +++ b/lib/src/clixon_path.c @@ -637,6 +637,7 @@ api_path2xpath_cvv(cvec *api_path, char *namespace = NULL; cvec *nsc = NULL; + cprintf(xpath, "/"); /* Initialize namespace context */ if ((nsc = xml_nsctx_init(NULL, NULL)) == NULL) goto done;