From b9117f9abdc7f1e8e328b4c6f941b902f2dd5fb9 Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 4 Dec 2016 07:42:38 +0100 Subject: [PATCH] [db] Remove unnecessary setting of query param fields to 0 --- src/db.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/db.c b/src/db.c index 33fac21d..2b38d89b 100644 --- a/src/db.c +++ b/src/db.c @@ -4516,10 +4516,6 @@ db_queue_add_by_playlistid(int plid, char reshuffle, uint32_t item_id) qp.id = plid; qp.type = Q_PLITEMS; - qp.offset = 0; - qp.limit = 0; - qp.sort = S_NONE; - qp.idx_type = I_NONE; ret = db_queue_add_by_query(&qp, reshuffle, item_id); @@ -4543,11 +4539,7 @@ db_queue_add_by_fileid(int id, char reshuffle, uint32_t item_id) memset(&qp, 0, sizeof(struct query_params)); - qp.id = 0; qp.type = Q_ITEMS; - qp.offset = 0; - qp.limit = 0; - qp.sort = S_NONE; snprintf(buf, sizeof(buf), "f.id = %" PRIu32, id); qp.filter = buf;