1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[libcss] Bring back assert

This commit is contained in:
Witold Filipczyk 2023-05-28 17:07:47 +02:00
parent 41074ac1ca
commit 4f2ff8536b

View File

@ -1826,7 +1826,7 @@ css_error set_libcss_node_data(void *pw, void *node, void *libcss_node_data)
{ {
dom_node *n = node; dom_node *n = node;
dom_exception err; dom_exception err;
void *old_node_data; void *old_node_data = NULL;
/* Set this node's node data */ /* Set this node's node data */
err = dom_node_set_user_data(n, err = dom_node_set_user_data(n,
@ -1836,10 +1836,7 @@ css_error set_libcss_node_data(void *pw, void *node, void *libcss_node_data)
if (err != DOM_NO_ERR) { if (err != DOM_NO_ERR) {
return CSS_NOMEM; return CSS_NOMEM;
} }
#if 0
assert(old_node_data == NULL); assert(old_node_data == NULL);
#endif
return CSS_OK; return CSS_OK;
} }