From 6130578d1860e7bc22cd4a8f47366eb49918fe89 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Sat, 9 Apr 2016 07:46:19 +0000 Subject: [PATCH] lib/db: Empty slice is not nil (fixes #2872) --- lib/db/leveldb_transactions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db/leveldb_transactions.go b/lib/db/leveldb_transactions.go index 5415f56a3..c9151d28e 100644 --- a/lib/db/leveldb_transactions.go +++ b/lib/db/leveldb_transactions.go @@ -100,7 +100,7 @@ func (t readWriteTransaction) updateGlobal(folder, device []byte, file protocol. var oldFile protocol.FileInfo var hasOldFile bool // Remove the device from the current version list - if svl != nil { + if len(svl) != 0 { err = fl.UnmarshalXDR(svl) if err != nil { panic(err)