Skip to content

Commit

Permalink
Fix db file initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
tobischo committed Aug 2, 2024
1 parent 59a19d0 commit 94a5e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prerun.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 94a5e42

Please sign in to comment.