diff options
author | Matthias Klose <doko@ubuntu.com> | 2010-07-30 21:27:18 (GMT) |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2010-07-30 21:27:18 (GMT) |
commit | 6e86bf72ac38e7d16ab86d9e94479a85791f0c79 (patch) | |
tree | 324bb105d6752a656be5e1e0ba9d2ee015d9e0f3 /Modules | |
parent | 3e67c5c52e644876d741b6cec4e36953a7ef3c21 (diff) | |
download | cpython-6e86bf72ac38e7d16ab86d9e94479a85791f0c79.zip cpython-6e86bf72ac38e7d16ab86d9e94479a85791f0c79.tar.gz cpython-6e86bf72ac38e7d16ab86d9e94479a85791f0c79.tar.bz2 |
- Issue #7567: Don't call `setupterm' twice.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_cursesmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index e9b5b65..5f26c7f 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -2047,7 +2047,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) { |