core/collection: Statically initialize c_file

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-12-07 10:05:42 -05:00
parent 696933c6b4
commit 94f22c9fc5
1 changed files with 1 additions and 2 deletions

View File

@ -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()) {