repochecker/epita: Fix nil pointer exception
This commit is contained in:
parent
d791e74a2a
commit
2b26b2b819
2 changed files with 4 additions and 4 deletions
|
@ -72,8 +72,8 @@ func AnalyzeNumberFlag(t string) (min, max, step *float64, err error) {
|
|||
}
|
||||
}
|
||||
|
||||
step = new(float64)
|
||||
if len(fields[3]) > 0 {
|
||||
step = new(float64)
|
||||
*step, err = strconv.ParseFloat(fields[3], 64)
|
||||
if err != nil {
|
||||
return
|
||||
|
|
Reference in a new issue