ALT Linux Bugzilla
– Attachment 4731 Details for
Bug 24379
xmlSetStructuredErrorFunc() breaks SAX2 error handler
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
libxml-error.patch
libxml-error.patch (text/plain), 1.05 KB, created by
Alexey Gladkov
on 2010-12-31 02:56:12 MSK
(
hide
)
Description:
libxml-error.patch
Filename:
MIME Type:
Creator:
Alexey Gladkov
Created:
2010-12-31 02:56:12 MSK
Size:
1.05 KB
patch
obsolete
>--- libxml2/error.c.fix 2010-12-31 01:43:40.137387477 +0300 >+++ libxml2/error.c 2010-12-31 02:45:14.973378106 +0300 >@@ -464,16 +464,11 @@ __xmlRaiseError(xmlStructuredErrorFunc s > } > /* > * Check if structured error handler set > */ >- if (schannel == NULL) { >+ if (schannel == NULL) > schannel = xmlStructuredError; >- /* >- * if user has defined handler, change data ptr to user's choice >- */ >- if (schannel != NULL) >- data = xmlStructuredErrorContext; >- } >+ > if ((domain == XML_FROM_VALID) && > ((channel == xmlParserValidityError) || > (channel == xmlParserValidityWarning))) { > ctxt = (xmlParserCtxtPtr) ctx; >@@ -483,8 +478,14 @@ __xmlRaiseError(xmlStructuredErrorFunc s > } > if (code == XML_ERR_OK) > return; > /* >+ * if user has defined handler, change data ptr to user's choice >+ */ >+ if (schannel != NULL) >+ data = xmlStructuredErrorContext; >+ >+ /* > * Formatting the message > */ > if (msg == NULL) { > str = (char *) xmlStrdup(BAD_CAST "No error message provided");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 24379
:
4726
|
4728
|
4731
|
4732
|
4733
|
4742