From: Guido van Rossum Date: Mon, 18 Sep 1995 21:44:04 +0000 (+0000) Subject: fix bug with missing default for last arg (discovered by Tommy Burnette) X-Git-Tag: v1.3~115 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1e7e6289301d981eff8357ed5b1f8ba95a9fc71;p=thirdparty%2FPython%2Fcpython.git fix bug with missing default for last arg (discovered by Tommy Burnette) --- diff --git a/Python/compile.c b/Python/compile.c index 9f15254aab0b..a01e72ad91c3 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2139,8 +2139,9 @@ com_argdefs(c, n) nargs++; i++; if (i >= nch) - break; - t = TYPE(CHILD(n, i)); + t = RPAR; /* Anything except EQUAL or COMMA */ + else + t = TYPE(CHILD(n, i)); if (t == EQUAL) { i++; ndefs++;