Skip to content

Commit 79e7151

Browse files
authored
Update enc.c
1 parent 1104b4c commit 79e7151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/enc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static PyObject* PyXmlSec_EncryptionContextEncryptBinary(PyObject* self, PyObjec
195195

196196
// release the replaced nodes in a way safe for `lxml`
197197
static void PyXmlSec_ClearReplacedNodes(xmlSecEncCtxPtr ctx, PyXmlSec_LxmlDocumentPtr doc) {
198-
PyXmlSec_LxmlElementPtr* elem;
198+
PyXmlSec_LxmlElementPtr elem;
199199
// release the replaced nodes in a way safe for `lxml`
200200
xmlNodePtr n = ctx->replacedNodeList;
201201
xmlNodePtr nn;
@@ -204,7 +204,7 @@ static void PyXmlSec_ClearReplacedNodes(xmlSecEncCtxPtr ctx, PyXmlSec_LxmlDocume
204204
PYXMLSEC_DEBUGF("clear replaced node %p", n);
205205
nn = n->next;
206206
// if n has references, it will not be deleted
207-
elem = (PyXmlSec_LxmlElementPtr*)PyXmlSec_elementFactory(doc, n);
207+
elem = (PyXmlSec_LxmlElementPtr)PyXmlSec_elementFactory(doc, n);
208208
if (NULL == elem)
209209
xmlFreeNode(n);
210210
else

0 commit comments

Comments
 (0)