From ffd50dbb1208f93b0c5965a14226522b799ffc60 Mon Sep 17 00:00:00 2001 From: Jaroslav Bachorik Date: Mon, 28 Apr 2025 17:33:52 +0000 Subject: [PATCH] Explicitly initialize empty context page (followup to #308) --- ddprof-lib/src/main/cpp/context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddprof-lib/src/main/cpp/context.cpp b/ddprof-lib/src/main/cpp/context.cpp index 8d4c97958..6e7516e2d 100644 --- a/ddprof-lib/src/main/cpp/context.cpp +++ b/ddprof-lib/src/main/cpp/context.cpp @@ -87,7 +87,7 @@ ContextPage Contexts::getPage(int tid) { return {.capacity = DD_CONTEXT_PAGE_SIZE * sizeof(Context), .storage = _pages[pageIndex]}; } else { - return {}; + return {.capacity = 0, .storage = NULL}; } }