Skip to content

Commit

Permalink
chore(pkg/driverbuilder): if envMap is nil, default at empty map.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
FedeDP authored and poiana committed May 10, 2024
1 parent 4c7df39 commit a170df2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/driverbuilder/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ func NewLocalBuildProcessor(useDKMS, downloadHeaders, printOnError bool,
envMap map[string]string,
timeout int,
) *LocalBuildProcessor {
if envMap == nil {
envMap = make(map[string]string)
}
return &LocalBuildProcessor{
useDKMS: useDKMS,
srcDir: srcDir,
Expand Down

0 comments on commit a170df2

Please sign in to comment.