1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-08 21:42:07 +03:00

minor change, avoid wasting CPU cycles Daniel

* xsltproc/xsltproc.c: minor change, avoid wasting CPU cycles
Daniel
This commit is contained in:
Daniel Veillard
2003-08-03 21:40:52 +00:00
parent d58accb588
commit 2885c5457c
2 changed files with 10 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
Sun Aug 3 17:40:13 EDT 2003 Daniel Veillard <daniel@veillard.com>
* xsltproc/xsltproc.c: minor change, avoid wasting CPU cycles
Sun Aug 3 21:05:07 HKT 2003 William Brack <wbrack@mmm.com.hk>
Minor cleanup of regression test general/bug-125

View File

@@ -163,10 +163,12 @@ xsltprocExternalEntityLoader(const char *URL, const char *ID,
const char *lastsegment = URL;
const char *iter = URL;
while (*iter != 0) {
if (*iter == '/')
lastsegment = iter + 1;
iter++;
if (nbpaths > 0) {
while (*iter != 0) {
if (*iter == '/')
lastsegment = iter + 1;
iter++;
}
}
if ((ctxt != NULL) && (ctxt->sax != NULL)) {