mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
Protect db_perthread_deinit() against NULL hdl
This commit is contained in:
parent
a678f5c99b
commit
e396906fee
3
src/db.c
3
src/db.c
@ -3613,6 +3613,9 @@ db_perthread_deinit(void)
|
|||||||
{
|
{
|
||||||
sqlite3_stmt *stmt;
|
sqlite3_stmt *stmt;
|
||||||
|
|
||||||
|
if (!hdl)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Tear down anything that's in flight */
|
/* Tear down anything that's in flight */
|
||||||
while ((stmt = sqlite3_next_stmt(hdl, 0)))
|
while ((stmt = sqlite3_next_stmt(hdl, 0)))
|
||||||
sqlite3_finalize(stmt);
|
sqlite3_finalize(stmt);
|
||||||
|
Loading…
Reference in New Issue
Block a user