summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/node.c b/src/core/node.c
index 8800a4b..d72af0f 100644
--- a/src/core/node.c
+++ b/src/core/node.c
@@ -2329,7 +2329,7 @@ static inline dom_exception _dom_event_targets_expand(
/* Create the event target list */
size = 64;
t = calloc(sizeof(*t), size);
- if (targets == NULL) {
+ if (t == NULL) {
return DOM_NO_MEM_ERR;
}
} else {