diff options
-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; } |