You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2018/11/19 18:04:50 UTC
[mynewt-newt] 01/02: sysinit: Initialize map before use
This is an automated email from the ASF dual-hosted git repository.
ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git
commit ef24d6b4d9840ba3b3a57d8d7f8302a2824cf555
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Fri Nov 16 10:49:07 2018 -0800
sysinit: Initialize map before use
---
newt/sysinit/sysinit.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/newt/sysinit/sysinit.go b/newt/sysinit/sysinit.go
index 7d012d0..a3b8dfd 100644
--- a/newt/sysinit/sysinit.go
+++ b/newt/sysinit/sysinit.go
@@ -72,7 +72,9 @@ func (scfg *SysinitCfg) detectConflicts() {
}
func Read(lpkgs []*pkg.LocalPackage, cfg *syscfg.Cfg) SysinitCfg {
- scfg := SysinitCfg{}
+ scfg := SysinitCfg{
+ Conflicts: map[string][]stage.StageFunc{},
+ }
for _, lpkg := range lpkgs {
scfg.readOnePkg(lpkg, cfg)