summaryrefslogtreecommitdiff
path: root/Python/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 424b601418..aaf158f5c5 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -3137,6 +3137,7 @@ parsenumber(struct compiling *c, const char *s)
int imflag;
#endif
+ assert(s != NULL);
errno = 0;
end = s + strlen(s) - 1;
#ifndef WITHOUT_COMPLEX