From d88ddfa94ae112957e49093550c096415ef0cd33 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Tue, 15 Jul 2008 17:14:51 +0000 Subject: Make these files to compile again under Windows. --- Python/pythonrun.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index ad758a6fd9..d13563ffb3 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1340,9 +1340,10 @@ print_exception(PyObject *f, PyObject *value) /* Don't do anything else */ } else { - assert(PyExceptionClass_Check(type)); PyObject* moduleName; - char* className = PyExceptionClass_Name(type); + char* className; + assert(PyExceptionClass_Check(type)); + className = PyExceptionClass_Name(type); if (className != NULL) { char *dot = strrchr(className, '.'); if (dot != NULL) -- cgit v1.2.1