Commit 5d4cba41 authored by William M. Brack's avatar William M. Brack
Browse files

fixed Bug130593 fixed compilation warning

* configure.in: fixed Bug130593
* xmlwriter.c: fixed compilation warning
parent 5987071f
Tue Jan 6 23:18:11 HKT 2004 William Brack <wbrack@mmm.com.hk>
* configure.in: fixed Bug130593
* xmlwriter.c: fixed compilation warning
Tue Jan 6 15:15:23 CET 2004 Daniel Veillard <daniel@veillard.com>
 
* include/libxml/xmlstring.h: fixed the comment in the header
......
......@@ -372,7 +372,7 @@ if test "$with_python" != "no" ; then
echo could not find python$PYTHON_VERSION/Python.h
fi
fi
if ! test -d "$PYTHON_SITE_PACKAGES"
if test ! -d "$PYTHON_SITE_PACKAGES"
then
PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
fi
......
......@@ -4050,11 +4050,12 @@ xmlTextWriterWriteIndent (xmlTextWriterPtr writer)
{
int lksize;
int i;
int ret;
int ret = -1; /* just in case of an empty list */
lksize = xmlListSize (writer->nodes);
for (i = 0; i < (lksize-1); i++) {
ret = xmlOutputBufferWriteString (writer->out, writer->ichar);
ret = xmlOutputBufferWriteString (writer->out,
(const char *)writer->ichar);
if (ret == -1)
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment