aboutsummaryrefslogtreecommitdiffstats
path: root/xmlreader.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2012-05-11 12:08:15 +0800
committerDaniel Veillard <veillard@redhat.com>2012-05-11 12:08:15 +0800
commit2c437da7f09528002c4ae5ab57b7620ed43733f4 (patch)
tree347432cdc28230d1d9b56349539f612ef8011b69 /xmlreader.c
parented35d3d7c3c28b46c012fdd26d40da374a06c8ed (diff)
downloadandroid_external_libxml2-2c437da7f09528002c4ae5ab57b7620ed43733f4.tar.gz
android_external_libxml2-2c437da7f09528002c4ae5ab57b7620ed43733f4.tar.bz2
android_external_libxml2-2c437da7f09528002c4ae5ab57b7620ed43733f4.zip
Fix a wrong return value in previous patch
Diffstat (limited to 'xmlreader.c')
-rw-r--r--xmlreader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlreader.c b/xmlreader.c
index ef41927e..c5ab60ec 100644
--- a/xmlreader.c
+++ b/xmlreader.c
@@ -5625,7 +5625,7 @@ xmlReaderNewIO(xmlTextReaderPtr reader, xmlInputReadCallback ioread,
if (input == NULL) {
if (ioclose != NULL)
ioclose(ioctx);
- return (NULL);
+ return (-1);
}
return (xmlTextReaderSetup(reader, input, URL, encoding, options));
}