1
0
Fork 0
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:
Victor Vieux 2014-06-17 20:45:57 +00:00
parent 52edbe6a23
commit 661a1e9026

View file

@ -778,6 +778,9 @@ func (f *FlagSet) usage() {
} }
func trimQuotes(str string) string { func trimQuotes(str string) string {
if len(str) == 0 {
return str
}
type quote struct { type quote struct {
start, end byte start, end byte
} }