summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-07-15 17:14:51 +0000
committerThomas Heller <theller@ctypes.org>2008-07-15 17:14:51 +0000
commit696ac9afbc3f1b6eb57699892e9285d869e1c77b (patch)
treee1af64f9abe505dcc7f3989c16e86b6c3d5d5ae3 /Python/pythonrun.c
parent44d8cb9e0b8d9f11b46efa1fbeffa83b5b756346 (diff)
downloadcpython-696ac9afbc3f1b6eb57699892e9285d869e1c77b.tar.gz
Make these files to compile again under Windows.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c5
1 files changed, 3 insertions, 2 deletions
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)