diff --git a/utils/xmlgrep/xml.c b/utils/xmlgrep/xml.c index fc1c040ce..6face341d 100644 --- a/utils/xmlgrep/xml.c +++ b/utils/xmlgrep/xml.c @@ -413,7 +413,7 @@ xmlGetNumElements(void *id, const char *path) if (nname) { clen = nname-pathname; - p = __xmlGetNode(xid->start, xid->len, pname, &clen); + p = __xmlGetNode(xid->start, xid->len, path, &clen); } else {