Merge pull request #1725 from egrs/fix-mcp-test-hang-aarch64

initialize all App fields after allocator.create
This commit is contained in:
Karl Seguin
2026-03-06 17:11:40 +08:00
committed by GitHub

View File

@@ -47,10 +47,17 @@ pub fn init(allocator: Allocator, config: *const Config) !*App {
const app = try allocator.create(App);
errdefer allocator.destroy(app);
app.config = config;
app.allocator = allocator;
app.robots = RobotStore.init(allocator);
app.* = .{
.config = config,
.allocator = allocator,
.robots = RobotStore.init(allocator),
.http = undefined,
.platform = undefined,
.snapshot = undefined,
.app_dir_path = undefined,
.telemetry = undefined,
.arena_pool = undefined,
};
app.http = try Http.init(allocator, &app.robots, config);
errdefer app.http.deinit();