summaryrefslogtreecommitdiff
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-12-31 10:04:13 -0800
committerGitHub <noreply@github.com>2017-12-31 10:04:13 -0800
commit0a37a30037073a4a9ba45e560c8445048e5f2ba2 (patch)
tree9728950510e4e4ffe0edecca86dcf305393f5a87 /Parser
parent6c6d3a46087bacb9c767c8cf2185505348d3796d (diff)
downloadcpython-git-0a37a30037073a4a9ba45e560c8445048e5f2ba2.tar.gz
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 7fe04a9d36..ab6bd4e830 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 */