mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-10 05:08:11 -05:00
[db] Error checking for alloc failure
This commit is contained in:
parent
e9d1a2475e
commit
f4cb0fb79d
2
src/db.c
2
src/db.c
@ -3600,7 +3600,7 @@ db_pl_delete_bypath(const char *path)
|
|||||||
memset(&qp, 0, sizeof(struct query_params));
|
memset(&qp, 0, sizeof(struct query_params));
|
||||||
|
|
||||||
qp.type = Q_PL;
|
qp.type = Q_PL;
|
||||||
qp.filter = db_mprintf("path = '%q'", path);
|
CHECK_NULL(L_DB, qp.filter = db_mprintf("path = '%q'", path));
|
||||||
|
|
||||||
ret = db_query_start(&qp);
|
ret = db_query_start(&qp);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user