aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/storage_sqlite.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-04 21:41:41 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-04 21:43:29 +0200
commit254ece5752ae84019028f98615a14a9f26cc16c6 (patch)
tree9798480eacfbaf06e649ce6f2cc1df739af5b1bb /src/storage_sqlite.c
parentsqlite: rename a column (diff)
downloadcimple-254ece5752ae84019028f98615a14a9f26cc16c6.tar.gz
cimple-254ece5752ae84019028f98615a14a9f26cc16c6.zip
storage_sqlite: refactoring
Diffstat (limited to 'src/storage_sqlite.c')
-rw-r--r--src/storage_sqlite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storage_sqlite.c b/src/storage_sqlite.c
index eee26fe..e0f0eac 100644
--- a/src/storage_sqlite.c
+++ b/src/storage_sqlite.c
@@ -403,6 +403,8 @@ int storage_sqlite_get_run_queue(struct storage *storage, struct run_queue *queu
if (ret < 0)
return ret;
+ run_queue_create(queue);
+
while (1) {
ret = sqlite_step(stmt);
if (!ret)