Skip to content

Commit 26bab42

Browse files
bpo-115773: Use the right variable name based on the field we are trying read (#118591)
Co-authored-by: Pablo Galindo Salgado <[email protected]>
1 parent e5413ec commit 26bab42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_testexternalinspection.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -553,12 +553,12 @@ get_stack_trace(PyObject* self, PyObject* args)
553553
if (bytes_read == -1) {
554554
return NULL;
555555
}
556-
off_t thread_state_list_head = local_debug_offsets.runtime_state.interpreters_head;
556+
off_t interpreter_state_list_head = local_debug_offsets.runtime_state.interpreters_head;
557557

558558
void* address_of_interpreter_state;
559559
bytes_read = read_memory(
560560
pid,
561-
(void*)(runtime_start_address + thread_state_list_head),
561+
(void*)(runtime_start_address + interpreter_state_list_head),
562562
sizeof(void*),
563563
&address_of_interpreter_state);
564564
if (bytes_read == -1) {

0 commit comments

Comments
 (0)