Jelajahi Sumber

Merge pull request #13471 from ibuildthecloud/no-nil

Preinitialize MountPoints to avoid assigning to a nil map
Brian Goff 10 tahun lalu
induk
melakukan
0fccc40307
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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{
 		CommonContainer: CommonContainer{
 			State:        NewState(),
 			State:        NewState(),
 			root:         daemon.containerRoot(id),
 			root:         daemon.containerRoot(id),
+			MountPoints:  make(map[string]*mountPoint),
 			execCommands: newExecStore(),
 			execCommands: newExecStore(),
 		},
 		},
 	}
 	}