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:
@@ -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
|
||||
|
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user