summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2016-02-09 10:02:12 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2016-02-09 10:02:12 (GMT)
commit9f2c89e1fbc2fd019f10360f144174b4012962e6 (patch)
treef517fec4334eb4a342e77ae67efd38df1fcc94e9
parentfe6eb48a7b80dc8a6c94e5b7f67cf42b916b1086 (diff)
downloadlibdom-9f2c89e1fbc2fd019f10360f144174b4012962e6.tar.gz
libdom-9f2c89e1fbc2fd019f10360f144174b4012962e6.tar.bz2
Fix Coverity #1350096.
-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 {