validation BUGFIX wrong variable
diff --git a/src/validation.c b/src/validation.c
index a5b5c68..0877b85 100644
--- a/src/validation.c
+++ b/src/validation.c
@@ -1187,7 +1187,7 @@
         /* opaque data */
         if (!node->schema) {
             LOGVAL(LYD_CTX(node), LY_VLOG_LYD, node, LYVE_DATA, "Opaque node \"%s\" found.",
-                    ((struct lyd_node_opaq *)node)->name);
+                    ((struct lyd_node_opaq *)node)->name.name);
             return LY_EVALID;
         }