initialize sections in openSelfDebugInfoWindows
This commit is contained in:
@@ -145,7 +145,6 @@ pub const Coff = struct {
|
||||
if (self.sections.len == self.coff_header.number_of_sections)
|
||||
return;
|
||||
|
||||
self.sections = ArrayList(Section).init(self.allocator);
|
||||
try self.sections.ensureCapacity(self.coff_header.number_of_sections);
|
||||
|
||||
var file_stream = self.in_file.inStream();
|
||||
|
||||
@@ -805,7 +805,7 @@ fn openSelfDebugInfoWindows(allocator: *mem.Allocator) !DebugInfo {
|
||||
.allocator = allocator,
|
||||
.coff_header = undefined,
|
||||
.pe_header = undefined,
|
||||
.sections = undefined,
|
||||
.sections = ArrayList(coff.Section).init(allocator),
|
||||
.guid = undefined,
|
||||
.age = undefined,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user