]> granicus.if.org Git - python/commitdiff
The previous fix was still broken; the Py_END_ALLOW_THREADS macro was
authorGuido van Rossum <guido@python.org>
Sat, 29 Aug 1998 16:03:27 +0000 (16:03 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 29 Aug 1998 16:03:27 +0000 (16:03 +0000)
never executed because of a return statement.  Sigh.

Parser/myreadline.c

index 56c343aa6d0b6186db4b337d4968398af9ebc7ce..d6261398cb3503a2a797a83729f9748c272bfb6c 100644 (file)
@@ -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;
 }