Skip to content

Commit 164686f

Browse files
authored
Fix compiler warning about non initialised variable (pythonGH-11806)
1 parent 4207907 commit 164686f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/ast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ handle_keywordonly_args(struct compiling *c, const node *n, int start,
13661366
PyObject *argname;
13671367
node *ch;
13681368
expr_ty expression, annotation;
1369-
arg_ty arg;
1369+
arg_ty arg = NULL;
13701370
int i = start;
13711371
int j = 0; /* index for kwdefaults and kwonlyargs */
13721372

@@ -1462,7 +1462,7 @@ ast_for_arguments(struct compiling *c, const node *n)
14621462
int nposdefaults = 0, found_default = 0;
14631463
asdl_seq *posargs, *posdefaults, *kwonlyargs, *kwdefaults;
14641464
arg_ty vararg = NULL, kwarg = NULL;
1465-
arg_ty arg;
1465+
arg_ty arg = NULL;
14661466
node *ch;
14671467

14681468
if (TYPE(n) == parameters) {

0 commit comments

Comments
 (0)