Selaa lähdekoodia

Merge pull request #13471 from ibuildthecloud/no-nil

Preinitialize MountPoints to avoid assigning to a nil map
Brian Goff 10 vuotta sitten
vanhempi
commit
0fccc40307
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      daemon/daemon.go

+ 1 - 0
daemon/daemon.go

@@ -161,6 +161,7 @@ func (daemon *Daemon) load(id string) (*Container, error) {
 		CommonContainer: CommonContainer{
 			State:        NewState(),
 			root:         daemon.containerRoot(id),
+			MountPoints:  make(map[string]*mountPoint),
 			execCommands: newExecStore(),
 		},
 	}