mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-09-11 09:21:12 +02:00
Fix Uninitialized variable in ParsePatch (#3156)
This commit is contained in:
parent
3b525d5696
commit
4b5197beb4
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue