From f4cb0fb79d70f058b876b26e3a89dfdd4830182e Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 8 Feb 2020 16:10:33 +0100 Subject: [PATCH] [db] Error checking for alloc failure --- src/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.c b/src/db.c index 6e0a1e8b..4b499698 100644 --- a/src/db.c +++ b/src/db.c @@ -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)