Skip to content

Commit f6b9971

Browse files
committed
#72 Initialize the sessionlog, transcript using make()
1 parent 758b054 commit f6b9971

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

smtp/transcript/lib.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ func Rise(argv0, argv1, argv2 string) []TranscriptLog {
7575
p2 := strings.Index(argv0, argv2); if p2 < 0 { return []TranscriptLog{} }
7676

7777
// 2. Remove the head of the argv0 to the first "<<<" or ">>>"
78-
sessionlog := []string{} // Each line of the SMTP transcript log(argv0)
79-
transcript := []TranscriptLog{} // The list of TranscriptLog{}
78+
sessionlog := make([]string, 0, 32) // Each line of the SMTP transcript log(argv0)
79+
transcript := make([]TranscriptLog, 0, 8) // The list of TranscriptLog{}
8080

8181
if p2 < p1 {
8282
// An SMTP server response starting with "<<<" is the first

0 commit comments

Comments
 (0)