summaryrefslogtreecommitdiffstats
path: root/Parser/myreadline.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-29 16:03:27 (GMT)
committerGuido van Rossum <guido@python.org>1998-08-29 16:03:27 (GMT)
commit80c7bcf667b49c9c62dffeb9e433613f2c94e87f (patch)
tree50a12706397cb3cc5e3bf65a91be788b4777c4e9 /Parser/myreadline.c
parent4d1874093f455edf19339cb1344ea2e88adfa477 (diff)
downloadcpython-80c7bcf667b49c9c62dffeb9e433613f2c94e87f.zip
cpython-80c7bcf667b49c9c62dffeb9e433613f2c94e87f.tar.gz
cpython-80c7bcf667b49c9c62dffeb9e433613f2c94e87f.tar.bz2
The previous fix was still broken; the Py_END_ALLOW_THREADS macro was
never executed because of a return statement. Sigh.
Diffstat (limited to 'Parser/myreadline.c')
-rw-r--r--Parser/myreadline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c
index 56c343a..d626139 100644
--- a/Parser/myreadline.c
+++ b/Parser/myreadline.c
@@ -140,10 +140,12 @@ char *
PyOS_Readline(prompt)
char *prompt;
{
+ char *rv;
if (PyOS_ReadlineFunctionPointer == NULL) {
PyOS_ReadlineFunctionPointer = PyOS_StdioReadline;
}
Py_BEGIN_ALLOW_THREADS
- return (*PyOS_ReadlineFunctionPointer)(prompt);
+ rv = (*PyOS_ReadlineFunctionPointer)(prompt);
Py_END_ALLOW_THREADS
+ return rv;
}