From 96d66cad7939686d1e0bf1dac8f92c81fbff7021 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 18 Jul 2016 10:31:48 +0300 Subject: [PATCH] db: Using plain integer as NULL pointer Signed-off-by: Dan Carpenter --- smatch_db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smatch_db.c b/smatch_db.c index b3e42bb1..81dbf6f0 100644 --- a/smatch_db.c +++ b/smatch_db.c @@ -43,7 +43,7 @@ do { \ p += snprintf(p, buf + sizeof(buf) - p, values); \ p += snprintf(p, buf + sizeof(buf) - p, ");"); \ sm_debug("in-mem: %s\n", buf); \ - rc = sqlite3_exec(mem_db, buf, NULL, 0, &err); \ + rc = sqlite3_exec(mem_db, buf, NULL, NULL, &err); \ if (rc != SQLITE_OK) { \ fprintf(stderr, "SQL error #2: %s\n", err); \ fprintf(stderr, "SQL: '%s'\n", buf); \ @@ -1559,7 +1559,7 @@ static void init_memdb(void) schema_files[i], sizeof(buf)); } buf[ret] = '\0'; - rc = sqlite3_exec(mem_db, buf, NULL, 0, &err); + rc = sqlite3_exec(mem_db, buf, NULL, NULL, &err); if (rc != SQLITE_OK) { fprintf(stderr, "SQL error #2: %s\n", err); fprintf(stderr, "%s\n", buf); -- 2.11.4.GIT