Skip to content

Commit fa87370

Browse files
committed
initialize variable for compiler happiness
1 parent bc8e097 commit fa87370

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Python/import.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,9 +1289,9 @@ remove_importlib_frames(void)
12891289
const char *importlib_filename = "<frozen importlib._bootstrap>";
12901290
const char *exec_funcname = "_exec_module";
12911291
int always_trim = 0;
1292-
int in_importlib;
1292+
int in_importlib = 0;
12931293
PyObject *exception, *value, *base_tb, *tb;
1294-
PyObject **prev_link, **outer_link;
1294+
PyObject **prev_link, **outer_link = NULL;
12951295

12961296
/* Synopsis: if it's an ImportError, we trim all importlib chunks
12971297
from the traceback. Otherwise, we trim only those chunks which
@@ -1306,7 +1306,6 @@ remove_importlib_frames(void)
13061306

13071307
prev_link = &base_tb;
13081308
tb = base_tb;
1309-
in_importlib = 0;
13101309
while (tb != NULL) {
13111310
PyTracebackObject *traceback = (PyTracebackObject *)tb;
13121311
PyObject *next = (PyObject *) traceback->tb_next;

0 commit comments

Comments
 (0)