summaryrefslogtreecommitdiff
path: root/src/templates.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates.c')
-rw-r--r--src/templates.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates.c b/src/templates.c
index 8764da40..88bed3dd 100644
--- a/src/templates.c
+++ b/src/templates.c
@@ -2065,7 +2065,7 @@ xmlSecTmplNodeWriteNsList(xmlNodePtr parentNode, const xmlChar** nsList) {
} else {
prefix = (*ptr);
}
- if((++ptr) == NULL) {
+ if(*(++ptr) == NULL) {
xmlSecError(XMLSEC_ERRORS_HERE,
NULL,
NULL,