From 94a5e42acbc1d575d4b6ebbc8e38cc21015dea87 Mon Sep 17 00:00:00 2001 From: Tobias Schoknecht Date: Fri, 2 Aug 2024 20:42:41 +0200 Subject: [PATCH] Fix db file initialization --- prerun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prerun.go b/prerun.go index 06638c1..45bec2a 100644 --- a/prerun.go +++ b/prerun.go @@ -37,7 +37,7 @@ func loadDatabaseCmd(_ *cobra.Command, _ []string) error { return fmt.Errorf("Failed to setup credentials: '%w'", err) } - db = new(gokeepasslib.Database) + db = gokeepasslib.NewDatabase() db.Credentials = credentials file, err := os.Open(filePath)