summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-05-04 17:37:09 -0400
committerBrett Cannon <brett@python.org>2013-05-04 17:37:09 -0400
commit39da2cb53bcacdaeb61d98d5511dbd44b423f080 (patch)
tree1dc26577e45a12545f521f61ebe72d62e4bd00d3 /Python/pythonrun.c
parent9281a117072e2795361153be09bfdb7579a566eb (diff)
downloadcpython-39da2cb53bcacdaeb61d98d5511dbd44b423f080.tar.gz
#17115: I hate you MS for not supporting C99.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 75f1ef6a26..cf2ecf1cb1 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -843,7 +843,7 @@ Py_GetPythonHome(void)
static void
initmain(PyInterpreterState *interp)
{
- PyObject *m, *d;
+ PyObject *m, *d, *loader;
m = PyImport_AddModule("__main__");
if (m == NULL)
Py_FatalError("can't create __main__ module");
@@ -864,7 +864,7 @@ initmain(PyInterpreterState *interp)
* be set if __main__ gets further initialized later in the startup
* process.
*/
- PyObject *loader = PyDict_GetItemString(d, "__loader__");
+ loader = PyDict_GetItemString(d, "__loader__");
if (loader == NULL || loader == Py_None) {
PyObject *loader = PyObject_GetAttrString(interp->importlib,
"BuiltinImporter");