[Python-checkins] Fix compiler warning about non initialised variable (GH-11806)
Pablo Galindo
webhook-mailer at python.org
Sun Feb 10 15:37:10 EST 2019
https://github.com/python/cpython/commit/164686f33aeff403e99ab31087e77192ccbbed10
commit: 164686f33aeff403e99ab31087e77192ccbbed10
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: GitHub <noreply at github.com>
date: 2019-02-10T20:37:07Z
summary:
Fix compiler warning about non initialised variable (GH-11806)
files:
M Python/ast.c
diff --git a/Python/ast.c b/Python/ast.c
index 4fa98b17f880..76588c345f27 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) {
More information about the Python-checkins
mailing list