Skip to content

Commit a63ff8d

Browse files
author
Solomon Hykes
committed
Fix a crash in graphdriver init
1 parent 77ae978 commit a63ff8d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

graphdriver/driver.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ var (
3636
}
3737
)
3838

39+
func init() {
40+
drivers = make(map[string]InitFunc)
41+
}
42+
3943
func Register(name string, initFunc InitFunc) error {
4044
if _, exists := drivers[name]; exists {
4145
return fmt.Errorf("Name already registered %s", name)

0 commit comments

Comments
 (0)