Skip to content

Commit

Permalink
Skip empty icon paths (keybase#6383)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Sanders authored Mar 27, 2017
1 parent 8d31882 commit 22ab75d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions go/tools/winresource/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ func kbWriteSyso(vi *goversioninfo.VersionInfo, filename string, arch string, ic
}
// if extra icons were passed in
for _, i := range icons {
if err := addIcon(coff, i, newID); err != nil {
return err
if i != "" {
if err := addIcon(coff, i, newID); err != nil {
return err
}
}
}

Expand Down

0 comments on commit 22ab75d

Please sign in to comment.