core/collection: Statically initialize c_file
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
696933c6b4
commit
94f22c9fc5
|
@ -8,8 +8,8 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
|
||||
static struct file c_file = FILE_INIT("library.q", 0);
|
||||
static struct queue c_queue;
|
||||
static struct file c_file;
|
||||
|
||||
struct scan_data {
|
||||
struct library *sd_lib;
|
||||
|
@ -103,7 +103,6 @@ void collection_init(struct queue_ops *ops)
|
|||
unsigned int i, n = 0;
|
||||
int field, ascending;
|
||||
|
||||
file_init(&c_file, "library.q", 0);
|
||||
queue_init(&c_queue, Q_ENABLED | Q_REPEAT | Q_ADD_FRONT, ops);
|
||||
|
||||
db_for_each(track, next, track_db_get()) {
|
||||
|
|
Loading…
Reference in New Issue