Skip to content

Commit

Permalink
initialize file lumi list as empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Mar 2, 2022
1 parent 5d50e72 commit 00473bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dbs/blockdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ func getFileList(blk string, wg *sync.WaitGroup, files *FileList) {
return
}
defer frows.Close()
var fileLumiList []FileLumi
// ensure that fileLumiList will be serialized as empty list [] and not as null
fileLumiList := make([]FileLumi, 0)
for frows.Next() {
fileLumi := FileLumi{}
var evt sql.NullInt64
Expand Down

0 comments on commit 00473bd

Please sign in to comment.