diff options
author | Graham.Dumpleton <devnull@localhost> | 2007-07-08 00:06:03 +0000 |
---|---|---|
committer | Graham.Dumpleton <devnull@localhost> | 2007-07-08 00:06:03 +0000 |
commit | 77aaf2d93b149af15c1e614b20a979bf6dcb7216 (patch) | |
tree | b93b50ad57c044163bcfb21a8a93c7fcc21c9729 | |
parent | 382f5f23ef11f1b29733a67663b34ad4011ebd4c (diff) | |
download | mod_wsgi-77aaf2d93b149af15c1e614b20a979bf6dcb7216.tar.gz |
Move variable declarations to begining of block else old C compilers complain.
-rw-r--r-- | mod_wsgi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1074,9 +1074,6 @@ static PyTypeObject Log_Type = { void wsgi_log_python_error(request_rec *r, LogObject *log) { - if (!PyErr_Occurred()) - return; - PyObject *m = NULL; PyObject *result = NULL; @@ -1084,6 +1081,9 @@ void wsgi_log_python_error(request_rec *r, LogObject *log) PyObject *value = NULL; PyObject *traceback = NULL; + if (!PyErr_Occurred()) + return; + if (PyErr_ExceptionMatches(PyExc_SystemExit)) { Py_BEGIN_ALLOW_THREADS ap_log_rerror(APLOG_MARK, WSGI_LOG_ERR(0), r, |