From 4804f72d73d764f3320742348273bd2b98d7f306 Mon Sep 17 00:00:00 2001
From: Philipp Gesang <phg42.2a@gmail.com>
Date: Fri, 17 May 2013 17:55:38 +0200
Subject: reintroduce checks for prototype validity

---
 luatexbase-attr.dtx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'luatexbase-attr.dtx')

diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx
index 638cd31..5b7288f 100644
--- a/luatexbase-attr.dtx
+++ b/luatexbase-attr.dtx
@@ -535,7 +535,7 @@ local new_user_whatsit = function (req, package)
         id              = new_user_whatsit_id(req, package)
         whatsit         = newnode(whatsit_t, user_defined_t)
         whatsit.user_id = id
-    else -- node
+    elseif req.id == whatsit_t and req.subtype == user_defined_t then
         id      = req.user_id
         whatsit = copynode(req)
         if not whatsit_ids[id] then
-- 
cgit v1.2.3

