[db] Error checking for alloc failure

This commit is contained in:
ejurgensen 2020-02-08 16:10:33 +01:00
parent e9d1a2475e
commit f4cb0fb79d

View File

@ -3600,7 +3600,7 @@ db_pl_delete_bypath(const char *path)
memset(&qp, 0, sizeof(struct query_params));
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);
if (ret < 0)