summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-12-31 18:04:13 (GMT)
committerGitHub <noreply@github.com>2017-12-31 18:04:13 (GMT)
commit0a37a30037073a4a9ba45e560c8445048e5f2ba2 (patch)
tree9728950510e4e4ffe0edecca86dcf305393f5a87 /Parser
parent6c6d3a46087bacb9c767c8cf2185505348d3796d (diff)
downloadcpython-0a37a30037073a4a9ba45e560c8445048e5f2ba2.zip
cpython-0a37a30037073a4a9ba45e560c8445048e5f2ba2.tar.gz
cpython-0a37a30037073a4a9ba45e560c8445048e5f2ba2.tar.bz2
closes bpo-32460: ensure all non-static globals have initializers (#5061)
Diffstat (limited to 'Parser')
-rw-r--r--Parser/myreadline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c
index 7fe04a9..ab6bd4e 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 */