summaryrefslogtreecommitdiff
path: root/src/analysis/db/items/bookmark.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-23 08:38:03 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-23 08:38:03 (GMT)
commit1e46553615fa6a7057a7c46c249485365b4c147c (patch)
tree893f72d79d2ec9778e43d06e8c3519d4ecbc5d5a /src/analysis/db/items/bookmark.c
parentff9d6470935529cece23378ef9e3aa0f573e5925 (diff)
Fixed the analysis database creations.
Diffstat (limited to 'src/analysis/db/items/bookmark.c')
-rw-r--r--src/analysis/db/items/bookmark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analysis/db/items/bookmark.c b/src/analysis/db/items/bookmark.c
index 712a5eb..d3010dd 100644
--- a/src/analysis/db/items/bookmark.c
+++ b/src/analysis/db/items/bookmark.c
@@ -755,7 +755,7 @@ static bool g_bookmark_collection_create_db_table(const GBookmarkCollection *col
sql = "CREATE TABLE Bookmarks (" \
SQLITE_DB_ITEM_CREATE ", " \
- "%%s, " \
+ "%s, " \
SQLITE_RLESTR_CREATE("comment") \
");";
@@ -763,7 +763,7 @@ static bool g_bookmark_collection_create_db_table(const GBookmarkCollection *col
asprintf(&request, sql, addr_fields);
- ret = sqlite3_exec(db, sql, NULL, NULL, &msg);
+ ret = sqlite3_exec(db, request, NULL, NULL, &msg);
free(addr_fields);
free(request);