summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-07-09 20:43:53 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-07-09 20:43:53 (GMT)
commitfa873704a405e66835d8ab4b92f1ab210f30dafe (patch)
tree8f9a70570981b8d149a3363a8597a989538da97e
parentbc8e09708bb09dc56adaf04081462f26f834e372 (diff)
downloadcpython-fa873704a405e66835d8ab4b92f1ab210f30dafe.zip
cpython-fa873704a405e66835d8ab4b92f1ab210f30dafe.tar.gz
cpython-fa873704a405e66835d8ab4b92f1ab210f30dafe.tar.bz2
initialize variable for compiler happiness
-rw-r--r--Python/import.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/import.c b/Python/import.c
index 8dd285f..4ae8abf 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1289,9 +1289,9 @@ remove_importlib_frames(void)
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 @@ remove_importlib_frames(void)
prev_link = &base_tb;
tb = base_tb;
- in_importlib = 0;
while (tb != NULL) {
PyTracebackObject *traceback = (PyTracebackObject *)tb;
PyObject *next = (PyObject *) traceback->tb_next;