diff options
| author | Benjamin Peterson <benjamin@python.org> | 2012-07-09 13:43:53 -0700 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2012-07-09 13:43:53 -0700 |
| commit | 0216bfca9a2f81c03b46f83c962f1dcf07aaae15 (patch) | |
| tree | 9e005be9846040b4df2d57c93e90f6de79ea568c /Python/import.c | |
| parent | b8bd8c96ede9df3c69d99afd7c019393db34b29d (diff) | |
| download | cpython-0216bfca9a2f81c03b46f83c962f1dcf07aaae15.tar.gz | |
initialize variable for compiler happiness
Diffstat (limited to 'Python/import.c')
| -rw-r--r-- | Python/import.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/import.c b/Python/import.c index 8dd285f9b0..4ae8abfceb 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; |
