-
-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SA5011: don't flag indexing of possibly nil slice
Indexing a nil slice doesn't cause a nil pointer dereference, "only" an out of bounds. This fix also acts as a workaround for gh-1051 and gh-1053. Closes gh-1051 Updates gh-1053 (cherry picked from commit 4e580ec)
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters