Commit 635edd19 authored by Matthias Klose's avatar Matthias Klose

- Issue #7567: PyCurses_setupterm: Don't call `setupterm' twice.

parent ce126edf
......@@ -1673,6 +1673,8 @@ Extension Modules
- Issue #7347: winreg: Add CreateKeyEx and DeleteKeyEx, as well as fix a
bug in the return value of QueryReflectionKey.
- Issue #7567: PyCurses_setupterm: Don't call `setupterm' twice.
Build
-----
......
......@@ -2126,7 +2126,7 @@ PyCurses_setupterm(PyObject* self, PyObject *args, PyObject* keywds)
}
}
if (setupterm(termstr,fd,&err) == ERR) {
if (!initialised_setupterm && setupterm(termstr,fd,&err) == ERR) {
char* s = "setupterm: unknown error";
if (err == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment