From: Neal Norwitz Date: Mon, 15 Oct 2007 16:08:26 +0000 (+0000) Subject: Move decl so it compiles with C89. X-Git-Tag: v3.0a2~313 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e20ad358fd678b37e76715f8dfae83bff7751a8b;p=thirdparty%2FPython%2Fcpython.git Move decl so it compiles with C89. --- diff --git a/Python/importdl.c b/Python/importdl.c index 7978c48b3db5..19e7d6deb159 100644 --- a/Python/importdl.c +++ b/Python/importdl.c @@ -22,6 +22,7 @@ PyObject * _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp) { PyObject *m; + PyObject *path; char *lastdot, *shortname, *packagecontext, *oldcontext; dl_funcptr p; @@ -62,7 +63,6 @@ _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp) return NULL; } /* Remember the filename as the __file__ attribute */ - PyObject *path; path = PyUnicode_DecodeFSDefault(pathname); if (PyModule_AddObject(m, "__file__", path) < 0) PyErr_Clear(); /* Not important enough to report */