diff options
author | Benjamin Peterson <benjamin@python.org> | 2017-12-31 10:04:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-31 10:04:13 -0800 |
commit | 0a37a30037073a4a9ba45e560c8445048e5f2ba2 (patch) | |
tree | 9728950510e4e4ffe0edecca86dcf305393f5a87 /Parser | |
parent | Add missing backslashes in PCbuild bat files (GH-5056) (diff) | |
download | cpython-0a37a30037073a4a9ba45e560c8445048e5f2ba2.tar.gz cpython-0a37a30037073a4a9ba45e560c8445048e5f2ba2.tar.bz2 cpython-0a37a30037073a4a9ba45e560c8445048e5f2ba2.zip |
closes bpo-32460: ensure all non-static globals have initializers (#5061)
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/myreadline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c index 7fe04a9d365..ab6bd4e8300 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -17,7 +17,7 @@ #endif /* MS_WINDOWS */ -PyThreadState* _PyOS_ReadlineTState; +PyThreadState* _PyOS_ReadlineTState = NULL; #include "pythread.h" static PyThread_type_lock _PyOS_ReadlineLock = NULL; @@ -284,7 +284,7 @@ PyOS_StdioReadline(FILE *sys_stdin, FILE *sys_stdout, const char *prompt) Note: Python expects in return a buffer allocated with PyMem_Malloc. */ -char *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *, const char *); +char *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *, const char *) = NULL; /* Interface used by tokenizer.c and bltinmodule.c */ |