]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-115773: Use the right variable name based on the field we are trying read (#118591)
authorAbhinav Upadhyay <er.abhinav.upadhyay@gmail.com>
Tue, 7 May 2024 14:50:41 +0000 (20:20 +0530)
committerGitHub <noreply@github.com>
Tue, 7 May 2024 14:50:41 +0000 (14:50 +0000)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Modules/_testexternalinspection.c

index 696c00c237dccf596a38d6bbe9e35e8179a81d16..2a665affb5e7f817b4c563a41e71a461e32cd927 100644 (file)
@@ -553,12 +553,12 @@ get_stack_trace(PyObject* self, PyObject* args)
     if (bytes_read == -1) {
         return NULL;
     }
-    off_t thread_state_list_head = local_debug_offsets.runtime_state.interpreters_head;
+    off_t interpreter_state_list_head = local_debug_offsets.runtime_state.interpreters_head;
 
     void* address_of_interpreter_state;
     bytes_read = read_memory(
             pid,
-            (void*)(runtime_start_address + thread_state_list_head),
+            (void*)(runtime_start_address + interpreter_state_list_head),
             sizeof(void*),
             &address_of_interpreter_state);
     if (bytes_read == -1) {