[xml] Very minor patch for xmlIO.c

There's a trivial error in xmlIO.c that shows up when LIBXML_HTTP_ENABLED is
not defined - 
the variable "is_http_uri" is referenced in several places, but its
declaration (and definition) is conditionally removed. One could either make
the definition unconditional, or exclude the references to it conditionally.
I chose the former approach. Cut between the "++++" lines for a patch.

Index: xmlIO.c
RCS file: /cvs/gnome/gnome-xml/xmlIO.c,v
retrieving revision 1.131
diff -u -r1.131 xmlIO.c
--- xmlIO.c     19 Oct 2003 21:59:17 -0000      1.131
+++ xmlIO.c     20 Oct 2003 23:59:09 -0000
@@ -2187,9 +2187,7 @@
     void *context = NULL;
     char *unescaped;
     int is_http_uri = 0;       /*   Can't change if HTTP disabled  */
     if (xmlOutputCallbackInitialized == 0)

Eric Zurcher
CSIRO Livestock Industries
Canberra, Australia
Eric Zurcher csiro au

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