Fix Uninitialized variable in ParsePatch (#3156) (#3162)

This commit is contained in:
Lauris BH authored and Lunny Xiao committed 2017-12-12 09:08:48 +08:00
1 parent 8a19c6b9a2
commit 59afb62ab2
1 file changed
+1 -1
+1 -1
View File
@@ -238,7 +238,7 @@ func ParsePatch(maxLines, maxLineCharacters, maxFiles int, reader io.Reader) (*D
var (
diff = &Diff{Files: make([]*DiffFile, 0)}
curFile *DiffFile
curFile = &DiffFile{}
curSection = &DiffSection{
Lines: make([]*DiffLine, 0, 10),
}