Skip to content

Commit a170df2

Browse files
FedeDPpoiana
authored andcommitted
chore(pkg/driverbuilder): if envMap is nil, default at empty map.
Signed-off-by: Federico Di Pierro <[email protected]>
1 parent 4c7df39 commit a170df2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/driverbuilder/local.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ func NewLocalBuildProcessor(useDKMS, downloadHeaders, printOnError bool,
3838
envMap map[string]string,
3939
timeout int,
4040
) *LocalBuildProcessor {
41+
if envMap == nil {
42+
envMap = make(map[string]string)
43+
}
4144
return &LocalBuildProcessor{
4245
useDKMS: useDKMS,
4346
srcDir: srcDir,

0 commit comments

Comments
 (0)