From 13853a67cf2d8f2b2fb9a8da467fba16424957fa Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 4 May 2013 17:37:09 -0400 Subject: #17115: I hate you MS for not supporting C99. --- Python/pythonrun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 75f1ef6..cf2ecf1 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"); -- cgit v0.12