Skip to content

Commit

Permalink
Log: Ensure FLAGS=none is -1 (go-gitea#9287)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath authored and techknowlogick committed Dec 8, 2019
1 parent 15254f5 commit 95a5739
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/log/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,8 @@ func FlagsFromString(from string) int {
flags |= f
}
}
if flags == 0 {
return -1
}
return flags
}

0 comments on commit 95a5739

Please sign in to comment.