Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression causing access to already closed sqlite handle
Commit fb58884 introduced a regression where on database open failure we end up accessing the already freed handle when trying to report the error. Now that we're no longer implicitly creating non-existent databases, just simplify the whole logic to get rid of it. 4.16.x branch will need a different fix, maybe use sqlite3_errstr() instead of _errmsg(). Reported and initial patch by Demi M. Obenour.
- Loading branch information