summaryrefslogtreecommitdiff
path: root/docs/examples/xmlstream.c
diff options
context:
space:
mode:
authorViktor Szakats <commit@vsz.me>2025-06-27 14:21:44 +0200
committerViktor Szakats <commit@vsz.me>2025-06-27 17:33:35 +0200
commitf9656445ba275efca02994808f1a89cf055e5e44 (patch)
treee1f6fae609d7033262b8468b2da90ac120a6c6e3 /docs/examples/xmlstream.c
parent081e78b023b1fdd76f4a65a2305bc8a63bab1ba5 (diff)
checksrc: reduce exceptions, apply again to curlx
- tests/libtest: move exception to `stub_gssapi.h`. - tests/libtest: move remaining exception to `testtrace.c`. - tests/server: drop obsolete exception. - docs/examples: move `BANNEDFUNC` exceptions to local files (3 lines). - docs/examples: move `ERRNOVAR` exception to `ephiperfifo.c`. - docs/examples: drop `typedef struct` (8 files). - lib/curlx: add `.checksrc` with banned funcs copied from lib. - checksrc: ban `strncpy`, `strtok_r`, `strtoul` by default. Drop local bans. Add exception for `strtoul` to `tests/server'. - lib, src: sync banned funcs. Also: - REUSE: drop `stunnel.pem`, it no longer exists. - docs/examples: formatting. - docs/examples: simplify some `sizeof()`s. Closes #17764
Diffstat (limited to 'docs/examples/xmlstream.c')
-rw-r--r--docs/examples/xmlstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/xmlstream.c b/docs/examples/xmlstream.c
index 208682ef0..91c538788 100644
--- a/docs/examples/xmlstream.c
+++ b/docs/examples/xmlstream.c
@@ -122,7 +122,7 @@ int main(void)
struct ParserStruct state;
/* Initialize the state structure for parsing. */
- memset(&state, 0, sizeof(struct ParserStruct));
+ memset(&state, 0, sizeof(state));
state.ok = 1;
/* Initialize a namespace-aware parser. */