diff options
author | Guido van Rossum <guido@python.org> | 1998-08-29 16:03:27 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-29 16:03:27 (GMT) |
commit | 80c7bcf667b49c9c62dffeb9e433613f2c94e87f (patch) | |
tree | 50a12706397cb3cc5e3bf65a91be788b4777c4e9 | |
parent | 4d1874093f455edf19339cb1344ea2e88adfa477 (diff) | |
download | cpython-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.
-rw-r--r-- | Parser/myreadline.c | 4 |
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; } |