Merge pull request #503 from Batchyx/nullbuffers

doc/reference.html: Document that XML_GetBuffer(parser, 0) may return NULL
This commit is contained in:
Sebastian Pipping 2021-07-05 17:01:01 +02:00 committed by GitHub
commit 9c9b05d2d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1115,7 +1115,8 @@ XML_GetBuffer(XML_Parser p,
<div class="fcndef">
Obtain a buffer of size <code>len</code> to read a piece of the document
into. A NULL value is returned if Expat can't allocate enough memory for
this buffer. This has to be called prior to every call to
this buffer. A NULL value may also be returned if <code>len</code> is zero.
This has to be called prior to every call to
<code><a href= "#XML_ParseBuffer" >XML_ParseBuffer</a></code>. A
typical use would look like this: