Skip to content

Commit 10630e8

Browse files
committed
pass through init return value from write-entry
1 parent 125513a commit 10630e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Python/sysmodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,8 +2289,9 @@ PyAPI_FUNC(int) PyUnstable_WritePerfMapEntry(
22892289
) {
22902290
#ifndef MS_WINDOWS
22912291
if (perf_map_state.perf_map == NULL) {
2292-
if(PyUnstable_PerfMapState_Init() != 0){
2293-
return -1;
2292+
int ret = PyUnstable_PerfMapState_Init();
2293+
if(ret != 0){
2294+
return ret;
22942295
}
22952296
}
22962297
PyThread_acquire_lock(perf_map_state.map_lock, 1);

0 commit comments

Comments
 (0)