xpath BUGFIX use new node type instead NULL for free nodes
Because NULL is also used for root nodes.
diff --git a/src/xpath.h b/src/xpath.h
index a0e45a1..b2f2eb5 100644
--- a/src/xpath.h
+++ b/src/xpath.h
@@ -127,6 +127,8 @@
* @brief Types of context nodes, #LYXP_NODE_ROOT_CONFIG used only in when or must conditions.
*/
enum lyxp_node_type {
+ LYXP_NODE_NONE, /* invalid node type */
+
/* XML document roots */
LYXP_NODE_ROOT, /* access to all the data (node value first top-level node) */
LYXP_NODE_ROOT_CONFIG, /* <running> data context, no state data (node value first top-level node) */