diff options
| author | shadchin <[email protected]> | 2024-09-17 19:54:19 +0300 |
|---|---|---|
| committer | shadchin <[email protected]> | 2024-09-17 20:04:48 +0300 |
| commit | ad73802f079a708231d906dd7273a632db735851 (patch) | |
| tree | d8b2b9f0b31430e69b777af21f63b432f4b92cc4 /contrib/tools/python3/Parser/tokenizer.c | |
| parent | 7c4e4744ae44dd94daa179458190817615f9e8a1 (diff) | |
Update Python 3 to 3.12.6
commit_hash:43ed87a61b9efe3a87682fda1f0bff6f7b422cc9
Diffstat (limited to 'contrib/tools/python3/Parser/tokenizer.c')
| -rw-r--r-- | contrib/tools/python3/Parser/tokenizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tools/python3/Parser/tokenizer.c b/contrib/tools/python3/Parser/tokenizer.c index f3b2bbde743..106307e7757 100644 --- a/contrib/tools/python3/Parser/tokenizer.c +++ b/contrib/tools/python3/Parser/tokenizer.c @@ -65,7 +65,7 @@ static const char *type_comment_prefix = "# type: "; static struct tok_state *tok_new(void) { struct tok_state *tok = - (struct tok_state *)PyMem_Malloc(sizeof(struct tok_state)); + (struct tok_state *)PyMem_Calloc(1, sizeof(struct tok_state)); if (tok == NULL) return NULL; tok->buf = tok->cur = tok->inp = NULL; |
