From 94f22c9fc5a8cdc7b28829fea49398a94908f080 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Mon, 7 Dec 2015 10:05:42 -0500 Subject: [PATCH] core/collection: Statically initialize c_file Signed-off-by: Anna Schumaker --- core/collection.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/collection.c b/core/collection.c index b08257eb..bdb22796 100644 --- a/core/collection.c +++ b/core/collection.c @@ -8,8 +8,8 @@ #include +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()) {