authorgravatar for emekankurumeh@outlook.comemekoi <emekankurumeh@outlook.com> 2019-06-28 18:22:02-05:00
committergravatar for emekankurumeh@outlook.comemekoi <emekankurumeh@outlook.com> 2019-06-28 18:22:02-05:00
logb780dee3e845f5c8fb8ea7b7906685d5196261a4
tree1907f185530704d376b3f9ce7fc0fe79485d5bed
parentfbb0c8d639ec205848f03099413c57f686c2d05d

initialize sections in openSelfDebugInfoWindows


2 files changed, 1 insertions(+), 2 deletions(-)

std/coff.zig-1
...@@ -145,7 +145,6 @@ pub const Coff = struct {...@@ -145,7 +145,6 @@ pub const Coff = struct {
145 if (self.sections.len == self.coff_header.number_of_sections)145 if (self.sections.len == self.coff_header.number_of_sections)
146 return;146 return;
147147
148 self.sections = ArrayList(Section).init(self.allocator);
149 try self.sections.ensureCapacity(self.coff_header.number_of_sections);148 try self.sections.ensureCapacity(self.coff_header.number_of_sections);
150149
151 var file_stream = self.in_file.inStream();150 var file_stream = self.in_file.inStream();
std/debug.zig+1-1
...@@ -805,7 +805,7 @@ fn openSelfDebugInfoWindows(allocator: *mem.Allocator) !DebugInfo {...@@ -805,7 +805,7 @@ fn openSelfDebugInfoWindows(allocator: *mem.Allocator) !DebugInfo {
805 .allocator = allocator,805 .allocator = allocator,
806 .coff_header = undefined,806 .coff_header = undefined,
807 .pe_header = undefined,807 .pe_header = undefined,
808 .sections = undefined,808 .sections = ArrayList(coff.Section).init(allocator),
809 .guid = undefined,809 .guid = undefined,
810 .age = undefined,810 .age = undefined,
811 };811 };