Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 78044:7ed3b4f830c0
initialize variable for compiler happiness
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Mon, 09 Jul 2012 13:43:53 -0700 |
| parents | efb5e6ab10f4 |
| children | 3fa1414ce505 |
line wrap: on
line diff
--- a/Python/import.c Mon Jul 09 16:09:21 2012 -0400 +++ b/Python/import.c Mon Jul 09 13:43:53 2012 -0700 @@ -1289,9 +1289,9 @@ const char *importlib_filename = "<frozen importlib._bootstrap>"; const char *exec_funcname = "_exec_module"; int always_trim = 0; - int in_importlib; + int in_importlib = 0; PyObject *exception, *value, *base_tb, *tb; - PyObject **prev_link, **outer_link; + PyObject **prev_link, **outer_link = NULL; /* Synopsis: if it's an ImportError, we trim all importlib chunks from the traceback. Otherwise, we trim only those chunks which @@ -1306,7 +1306,6 @@ prev_link = &base_tb; tb = base_tb; - in_importlib = 0; while (tb != NULL) { PyTracebackObject *traceback = (PyTracebackObject *)tb; PyObject *next = (PyObject *) traceback->tb_next;
