xpath BUGFIX proper not-found support in unions
diff --git a/src/xpath.h b/src/xpath.h
index 6c46c14..17bda6c 100644
--- a/src/xpath.h
+++ b/src/xpath.h
@@ -298,6 +298,8 @@
     uint32_t ctx_size;          /**< Position of the last node at the time the node was examined. */
     ly_bool non_child_axis;     /**< Whether any node change was performed on a non-child axis. */
 
+    ly_bool not_found;          /**< Set if a node is not found and it is considered an error. */
+
     /* general context */
     struct ly_ctx *ctx;                     /**< General context for logging. */