Skip to content

Commit

Permalink
Merge pull request #325 from hroncok/type
Browse files Browse the repository at this point in the history
Explicitly cast the pointer type in PyXmlSec_ClearReplacedNodes
  • Loading branch information
jimjag authored Oct 2, 2024
2 parents 1b3b527 + 67cd4ac commit 37da064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static void PyXmlSec_ClearReplacedNodes(xmlSecEncCtxPtr ctx, PyXmlSec_LxmlDocume
PYXMLSEC_DEBUGF("clear replaced node %p", n);
nn = n->next;
// if n has references, it will not be deleted
elem = PyXmlSec_elementFactory(doc, n);
elem = (PyXmlSec_LxmlElementPtr*)PyXmlSec_elementFactory(doc, n);
if (NULL == elem)
xmlFreeNode(n);
else
Expand Down

0 comments on commit 37da064

Please sign in to comment.