summaryrefslogtreecommitdiffstats
path: root/Parser/parser.c
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-07-06 19:31:16 (GMT)
committerGitHub <noreply@github.com>2020-07-06 19:31:16 (GMT)
commit1ac0cbca369f16f9191833dd54536482fb141a98 (patch)
tree1800eafad7ec998d61d6172c13194979b86533d6 /Parser/parser.c
parentdcbaa1b49cd9062fb9ba2b9d49555ac6cd8c60b5 (diff)
downloadcpython-1ac0cbca369f16f9191833dd54536482fb141a98.zip
cpython-1ac0cbca369f16f9191833dd54536482fb141a98.tar.gz
cpython-1ac0cbca369f16f9191833dd54536482fb141a98.tar.bz2
bpo-41215: Don't use NULL by default in the PEG parser keyword list (GH-21355)
Automerge-Triggered-By: @lysnikolaou
Diffstat (limited to 'Parser/parser.c')
-rw-r--r--Parser/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/parser.c b/Parser/parser.c
index bfd5c47..75dc717 100644
--- a/Parser/parser.c
+++ b/Parser/parser.c
@@ -9,8 +9,8 @@ extern int Py_DebugFlag;
#endif
static const int n_keyword_lists = 9;
static KeywordToken *reserved_keywords[] = {
- NULL,
- NULL,
+ (KeywordToken[]) {{NULL, -1}},
+ (KeywordToken[]) {{NULL, -1}},
(KeywordToken[]) {
{"if", 510},
{"in", 518},