Skip to content

Commit 4c72573

Browse files
authored
os minor should default to 0 (#513)
1 parent 347d462 commit 4c72573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/analyze/host_system_packages.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func getSystemPackageTemplateMap(pkg collect.SystemPackage, osName string, osVer
123123
osVersionParts := strings.Split(osVersion, ".")
124124
osVersionMajor, _ := strconv.ParseInt(osVersionParts[0], 10, 64)
125125

126-
var osVersionMinor int64 = -1
126+
var osVersionMinor int64
127127
if len(osVersionParts) > 1 {
128128
osVersionMinor, _ = strconv.ParseInt(osVersionParts[1], 10, 64)
129129
}

0 commit comments

Comments
 (0)