mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05: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:
parent
52edbe6a23
commit
661a1e9026
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue