fix(linux-gpu): fix wrong return type

This commit is contained in:
utox39
2025-07-12 01:23:33 +02:00
parent 9af26702cc
commit 5b63b30a4f

View File

@@ -123,11 +123,11 @@ pub fn getGpuInfo(allocator: std.mem.Allocator) !std.ArrayList(GpuInfo) {
}
if (gpu_info_list.items.len == 0) {
return GpuInfo{
.gpu_name = undefined,
try gpu_info_list.append(GpuInfo{
.gpu_name = try allocator.dupe(u8, "Unknown"),
.gpu_cores = 0,
.gpu_freq = 0.0,
};
});
}
return gpu_info_list;