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>
|
Sun Aug 3 21:05:07 HKT 2003 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
Minor cleanup of regression test general/bug-125
|
Minor cleanup of regression test general/bug-125
|
||||||
|
@@ -163,11 +163,13 @@ xsltprocExternalEntityLoader(const char *URL, const char *ID,
|
|||||||
const char *lastsegment = URL;
|
const char *lastsegment = URL;
|
||||||
const char *iter = URL;
|
const char *iter = URL;
|
||||||
|
|
||||||
|
if (nbpaths > 0) {
|
||||||
while (*iter != 0) {
|
while (*iter != 0) {
|
||||||
if (*iter == '/')
|
if (*iter == '/')
|
||||||
lastsegment = iter + 1;
|
lastsegment = iter + 1;
|
||||||
iter++;
|
iter++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((ctxt != NULL) && (ctxt->sax != NULL)) {
|
if ((ctxt != NULL) && (ctxt->sax != NULL)) {
|
||||||
warning = ctxt->sax->warning;
|
warning = ctxt->sax->warning;
|
||||||
|
Reference in New Issue
Block a user