Skip to content

Commit ebec9c4

Browse files
authored
Explicitly initialize empty context page (#210)
(followup to #308)
1 parent ecabc7f commit ebec9c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ddprof-lib/src/main/cpp/context.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ ContextPage Contexts::getPage(int tid) {
8787
return {.capacity = DD_CONTEXT_PAGE_SIZE * sizeof(Context),
8888
.storage = _pages[pageIndex]};
8989
} else {
90-
return {};
90+
return {.capacity = 0, .storage = NULL};
9191
}
9292
}
9393

0 commit comments

Comments
 (0)