diff options
author | zeripath <art27@cantab.net> | 2019-12-08 04:36:47 +0000 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-12-07 23:36:47 -0500 |
commit | 95a57394af4a1eec7105e5d58fa90c946c6d4089 (patch) | |
tree | 14445144cdc2fdf1fab446f351d928b8358e8446 | |
parent | 15254f5762ce175d8e8fcaab9549d6bf8f14e7aa (diff) | |
download | gitea-95a57394af4a1eec7105e5d58fa90c946c6d4089.tar.gz gitea-95a57394af4a1eec7105e5d58fa90c946c6d4089.zip |
Log: Ensure FLAGS=none is -1 (#9287)
-rw-r--r-- | modules/log/flags.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/log/flags.go b/modules/log/flags.go index 992fc62ddb..95950548ec 100644 --- a/modules/log/flags.go +++ b/modules/log/flags.go @@ -60,5 +60,8 @@ func FlagsFromString(from string) int { flags |= f } } + if flags == 0 { + return -1 + } return flags } |