summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham.Dumpleton <devnull@localhost>2007-07-08 00:06:03 +0000
committerGraham.Dumpleton <devnull@localhost>2007-07-08 00:06:03 +0000
commit77aaf2d93b149af15c1e614b20a979bf6dcb7216 (patch)
treeb93b50ad57c044163bcfb21a8a93c7fcc21c9729
parent382f5f23ef11f1b29733a67663b34ad4011ebd4c (diff)
downloadmod_wsgi-77aaf2d93b149af15c1e614b20a979bf6dcb7216.tar.gz
Move variable declarations to begining of block else old C compilers complain.
-rw-r--r--mod_wsgi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod_wsgi.c b/mod_wsgi.c
index 658662b..018489a 100644
--- a/mod_wsgi.c
+++ b/mod_wsgi.c
@@ -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,