[Pkg-javascript-commits] [node-expat] 13/371: fix expected XML_ParseBuffer() return value
Jonas Smedegaard
dr at jones.dk
Sun Feb 28 09:59:40 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository node-expat.
commit 0b6393c2fca61b667046de6a22e67ec40bdf382a
Author: Astro <astro at spaceboyz.net>
Date: Sun May 23 15:53:35 2010 +0200
fix expected XML_ParseBuffer() return value
---
expat.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/expat.cc b/expat.cc
index efb7df6..9b2660c 100644
--- a/expat.cc
+++ b/expat.cc
@@ -88,7 +88,7 @@ protected:
void *buf = XML_GetBuffer(parser, len);
assert(buf != NULL);
assert(str.WriteUtf8(static_cast<char *>(buf), len) == len);
- assert(XML_ParseBuffer(parser, len, isFinal) != 0);
+ assert(XML_ParseBuffer(parser, len, isFinal) != XML_STATUS_ERROR);
return true;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-expat.git
More information about the Pkg-javascript-commits
mailing list