1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-05 16:58:17 +03:00

fixed Bug130593 fixed compilation warning

* configure.in: fixed Bug130593
* xmlwriter.c: fixed compilation warning
This commit is contained in:
William M. Brack 2004-01-06 15:19:12 +00:00
parent 5987071fcc
commit 5d4cba413a
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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

View File

@ -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;
}