[xml] [PATCH] make all errors go through xmlGenericError



I had some errors going to stderr, even when I had my own error handler
defined. This patch fixes that. I'm not sure if this is exactly how
varargs are meant to be passed to other functions, but it appears to work.

--- error.c.old Wed Mar 14 19:40:29 2001
+++ error.c     Wed Mar 14 19:40:44 2001
@@ -303,7 +303,7 @@

     xmlGenericError(xmlGenericErrorContext, "validity error: ");
     va_start(args, msg);
-    vfprintf(xmlGenericErrorContext, msg, args);
+    xmlGenericError(xmlGenericErrorContext, msg, args);
     va_end(args);

     if (ctxt != NULL) {
@@ -337,7 +337,7 @@

     xmlGenericError(xmlGenericErrorContext, "validity warning: ");
     va_start(args, msg);
-    vfprintf(xmlGenericErrorContext, msg, args);
+    xmlGenericError(xmlGenericErrorContext, msg, args);
     va_end(args);

     if (ctxt != NULL) {


-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]