summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-02-10 20:37:07 (GMT)
committerGitHub <noreply@github.com>2019-02-10 20:37:07 (GMT)
commit164686f33aeff403e99ab31087e77192ccbbed10 (patch)
treee108fb25d3534648285e9ebf2a2e06a2a6b43059
parent4207907c2b8c0b3da62de2acdb8b22b5bbe7f7a2 (diff)
downloadcpython-164686f33aeff403e99ab31087e77192ccbbed10.zip
cpython-164686f33aeff403e99ab31087e77192ccbbed10.tar.gz
cpython-164686f33aeff403e99ab31087e77192ccbbed10.tar.bz2
Fix compiler warning about non initialised variable (GH-11806)
-rw-r--r--Python/ast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 4fa98b1..76588c3 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -1366,7 +1366,7 @@ handle_keywordonly_args(struct compiling *c, const node *n, int start,
PyObject *argname;
node *ch;
expr_ty expression, annotation;
- arg_ty arg;
+ arg_ty arg = NULL;
int i = start;
int j = 0; /* index for kwdefaults and kwonlyargs */
@@ -1462,7 +1462,7 @@ ast_for_arguments(struct compiling *c, const node *n)
int nposdefaults = 0, found_default = 0;
asdl_seq *posargs, *posdefaults, *kwonlyargs, *kwdefaults;
arg_ty vararg = NULL, kwarg = NULL;
- arg_ty arg;
+ arg_ty arg = NULL;
node *ch;
if (TYPE(n) == parameters) {