# HG changeset patch # User Ted Unangst # Date 1712947974 14400 # Fri Apr 12 14:52:54 2024 -0400 # Node ID 91096544826737ee2a0e86922ddc0f67f09aa0cb # Parent 3f628b52fa275370c7fed85701e20dfb52a19868 it's possible for file xid to be blank, don't try to save it from kuijsten diff --git a/backupdb.go b/backupdb.go --- a/backupdb.go +++ b/backupdb.go @@ -165,7 +165,9 @@ var xid, name, description, url, media, meta string var local int64 scanordie(rows, &fileid, &xid, &name, &description, &url, &media, &local, &meta) - filexids[xid] = true + if xid != "" { + filexids[xid] = true + } doordie(tx, "insert into filemeta (fileid, xid, name, description, url, media, local, meta) values (?, ?, ?, ?, ?, ?, ?, ?)", fileid, xid, name, description, url, media, local, meta) } rows.Close()