summaryrefslogtreecommitdiff
path: root/src/analysis/db/items/comment.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/comment.c
parentff9d6470935529cece23378ef9e3aa0f573e5925 (diff)
Fixed the analysis database creations.
Diffstat (limited to 'src/analysis/db/items/comment.c')
-rw-r--r--src/analysis/db/items/comment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analysis/db/items/comment.c b/src/analysis/db/items/comment.c
index 182b2d0..9fc2767 100644
--- a/src/analysis/db/items/comment.c
+++ b/src/analysis/db/items/comment.c
@@ -1595,7 +1595,7 @@ static bool g_comment_collection_create_db_table(const GCommentCollection *colle
sql = "CREATE TABLE Comments (" \
SQLITE_DB_ITEM_CREATE ", " \
- "%%s, " \
+ "%s, " \
"flags INTEGER, " \
SQLITE_RLESTR_CREATE("text") ", " \
"inlined INTEGER, " \
@@ -1606,7 +1606,7 @@ static bool g_comment_collection_create_db_table(const GCommentCollection *colle
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);