File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments