DockerCLI/cli/config/configfile
Danial 1ee40e2c74
configfile: Initialize nil AuthConfigs
Initialize AuthConfigs map if it's nil before returning it.
This fixes fileStore.Store nil dereference panic when adding a new key
to the map.

Signed-off-by: Danial Gharib <danial.mail.gh@gmail.com>
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit ad43df5e86)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2023-07-19 16:00:16 +02:00
..
testdata Simplify cli plugin config file entry 2019-02-25 10:38:48 +00:00
file.go configfile: Initialize nil AuthConfigs 2023-07-19 16:00:16 +02:00
file_test.go cli/config/configfile: mockNativeStore: remove name for unused arg (revive) 2023-03-30 17:22:10 +02:00
file_unix.go format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00
file_windows.go config: preserve ownership and permissions on configfile 2019-12-17 09:57:33 +01:00