mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-21 13:18:00 +00:00
prevent panic when empty flag
Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
This commit is contained in:
@@ -778,6 +778,9 @@ func (f *FlagSet) usage() {
|
||||
}
|
||||
|
||||
func trimQuotes(str string) string {
|
||||
if len(str) == 0 {
|
||||
return str
|
||||
}
|
||||
type quote struct {
|
||||
start, end byte
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user