diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2022-10-24 02:26:10 +0200 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2022-10-24 16:01:20 +0200 |
commit | 9294082e74b4845191ccc695cdf16eb53a0d3f9d (patch) | |
tree | 50c1ed0909d9e7afb9ff6b4596d9b6b015668169 | |
parent | dbf1202529f7a531e65c43f0db2324520a85d10a (diff) | |
download | libexpat-git-9294082e74b4845191ccc695cdf16eb53a0d3f9d.tar.gz |
examples: Add some whitespace for readability
-rw-r--r-- | expat/examples/elements.c | 2 | ||||
-rw-r--r-- | expat/examples/outline.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/expat/examples/elements.c b/expat/examples/elements.c index 1a3c786d..5098d7d9 100644 --- a/expat/examples/elements.c +++ b/expat/examples/elements.c @@ -87,6 +87,7 @@ main(void) { XML_SetUserData(parser, &depth); XML_SetElementHandler(parser, startElement, endElement); + do { void *const buf = XML_GetBuffer(parser, BUFSIZ); if (! buf) { @@ -114,6 +115,7 @@ main(void) { return 1; } } while (! done); + XML_ParserFree(parser); return 0; } diff --git a/expat/examples/outline.c b/expat/examples/outline.c index d154e33b..d23fa94b 100644 --- a/expat/examples/outline.c +++ b/expat/examples/outline.c @@ -90,6 +90,7 @@ main(void) { XML_SetUserData(parser, &depth); XML_SetElementHandler(parser, startElement, endElement); + do { void *const buf = XML_GetBuffer(parser, BUFSIZ); if (! buf) { @@ -117,6 +118,7 @@ main(void) { return 1; } } while (! done); + XML_ParserFree(parser); return 0; } |