summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2022-10-24 00:58:25 +0200
committerSebastian Pipping <sebastian@pipping.org>2022-10-24 00:58:25 +0200
commitbd351fad2003e419fffa69fb0df87b3a021d3145 (patch)
treee4c5fa0521e27387ac7a7d54221dd27ec3961f54
parent7eaccc0332830eb2cdff88495ce6a00f382f96ee (diff)
downloadlibexpat-git-bd351fad2003e419fffa69fb0df87b3a021d3145.tar.gz
examples/outline.c: Make "Buff" a local variable
-rw-r--r--expat/examples/outline.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/expat/examples/outline.c b/expat/examples/outline.c
index 4ff69ee2..5b179692 100644
--- a/expat/examples/outline.c
+++ b/expat/examples/outline.c
@@ -53,8 +53,6 @@
#define BUFFSIZE 8192
-char Buff[BUFFSIZE];
-
int Depth;
static void XMLCALL
@@ -85,6 +83,7 @@ end(void *data, const XML_Char *el) {
int
main(int argc, char *argv[]) {
+ char Buff[BUFFSIZE];
XML_Parser parser = XML_ParserCreate(NULL);
(void)argc;
(void)argv;