Skip to content
Snippets Groups Projects
Commit acd20ada authored by Patryk Kulpanowski's avatar Patryk Kulpanowski
Browse files

tensdmn: reworked log system

parent 773ba500
No related branches found
No related tags found
No related merge requests found
......@@ -367,7 +367,7 @@ int Daemon::ConfigureDaemon(DaemonConfig *cfg)
for (TParam* p = unit->GetFirstParam(); p; p = p->GetNext(), i++) {
char *expr;
asprintf(&expr, ".//ipk:unit[position()=1]/ipk:param[position()=%d]", i + 1);
xmlNodePtr node = uxmlXPathGetNode(BAD_CAST expr, xp_ctx);
xmlNodePtr node = uxmlXPathGetNode(BAD_CAST expr, xp_ctx, false);
assert(node);
char* c = (char*) xmlGetNsProp(node, BAD_CAST("type"), BAD_CAST(IPKEXTRA_NAMESPACE_STRING));
if (c == NULL || !strcmp(c, "weight"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment