Skip to content

Commit 2feb570

Browse files
committed
#72 Initialize the anotherone and msexchange using make()
1 parent 4bbfce3 commit 2feb570

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lhost/via-exchange2003.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ func init() {
9494
connvalues := 0 // Counter, 3 if it has got the all values of connheader
9595
connheader := [3]string{"", "", ""} // [To:, Subject:, Date:]
9696
rightindex := uint8(0) // The last index number of dscontents
97-
anotherone := []string{""} // Keeping another error messages
98-
msexchange := []bool{false} // Flag, true if "MSEXCH:" text has been appeared
97+
anotherone := make([]string, 1, 2) // Keeping another error messages
98+
msexchange := make([]bool, 1, 2) // Flag, true if "MSEXCH:" text has been appeared
9999
v := &(dscontents[len(dscontents) - 1])
100100

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

0 commit comments

Comments
 (0)