From edb9c1a0b6131bd669580e93a031b4ec6cb2e2d5 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 20 Aug 2022 13:29:04 -0400 Subject: [PATCH] Fixed assignment to entry in nil map --- parser/body.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parser/body.go b/parser/body.go index da8f75c..82b2635 100644 --- a/parser/body.go +++ b/parser/body.go @@ -32,9 +32,9 @@ func (parser *ParsingOperation) parseBody () (err error) { case "objt": var section *ObjtSection section, err = parser.parseObjtSection() - if parser.tree.typeSections == nil { - parser.tree.typeSections = - make(map[string] *TypeSection) + if parser.tree.objtSections == nil { + parser.tree.objtSections = + make(map[string] *ObjtSection) } parser.tree.objtSections[section.name] = section if err != nil { return }