From 95a57394af4a1eec7105e5d58fa90c946c6d4089 Mon Sep 17 00:00:00 2001 From: zeripath Date: Sun, 8 Dec 2019 04:36:47 +0000 Subject: [PATCH] Log: Ensure FLAGS=none is -1 (#9287) --- modules/log/flags.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/log/flags.go b/modules/log/flags.go index 992fc62ddb6e..95950548ece7 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 }