Skip to content

Commit b827487

Browse files
committed
#72 Initialize the anotherone using make()
1 parent 185923f commit b827487

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lhost/via-qmail.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ func init() {
163163

164164
dscontents := []sis.DeliveryMatter{{}}
165165
emailparts := rfc5322.Part(&bf.Payload, boundaries, false)
166-
anotherone := []string{""} // Keeping another error messages
167-
rightindex := uint8(0) // The last index number of dscontents
168-
readcursor := uint8(0) // Points the current cursor position
169-
recipients := uint8(0) // The number of 'Final-Recipient' header
166+
anotherone := make([]string, 1, 2) // Keeping another error messages
167+
rightindex := uint8(0) // The last index number of dscontents
168+
readcursor := uint8(0) // Points the current cursor position
169+
recipients := uint8(0) // The number of 'Final-Recipient' header
170170
v := &(dscontents[len(dscontents) - 1])
171171

172172
for _, e := range(strings.Split(emailparts[0], "\n")) {

0 commit comments

Comments
 (0)