[db] Remove unnecessary setting of query param fields to 0

This commit is contained in:
chme 2016-12-04 07:42:38 +01:00
parent d431ace5c4
commit b9117f9abd
1 changed files with 0 additions and 8 deletions

View File

@ -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;