Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c96ef6a

Browse files
committed
properly initialize optional arguments to apply()
1 parent faa436c commit c96ef6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/bltinmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ builtin_apply(self, args)
8080
object *self;
8181
object *args;
8282
{
83-
object *func, *alist, *kwdict = NULL;
83+
object *func, *alist = NULL, *kwdict = NULL;
8484

8585
if (!newgetargs(args, "O|OO:apply", &func, &alist, &kwdict))
8686
return NULL;

0 commit comments

Comments
 (0)