Skip to content

Commit ca496ea

Browse files
committed
#72 Initialize the ab([]string) using make()
1 parent f6b9971 commit ca496ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

message/tidy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func tidy(argv0 *string) *string {
4545
fn := fieldtable[cf]; if fn == "" { email += e + "\n"; continue }
4646

4747
// 2. Tidy up a sub type of each field defined in RFC1894 such as Reporting-MTA: DNS;...
48-
ab := []string{}
48+
ab := make([]string, 0, 2)
4949
bf := e[p0 + 1:]
5050
p1 := strings.IndexByte(bf, ';')
5151
for {

0 commit comments

Comments
 (0)