From 26ab30aba57c55c13cfea5a9945b0d6144522aa4 Mon Sep 17 00:00:00 2001 From: PedroRod Date: Sun, 20 Mar 2016 22:07:51 -0400 Subject: [PATCH] forgot to reset the null pointer of the bind back to SQLITE_STATIC --- include/spdlog/sinks/sqlite_sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/sqlite_sink.h b/include/spdlog/sinks/sqlite_sink.h index 8c4519e0..81019a71 100644 --- a/include/spdlog/sinks/sqlite_sink.h +++ b/include/spdlog/sinks/sqlite_sink.h @@ -44,7 +44,7 @@ namespace spdlog if (sqlite3_bind_text(_query_stmt, 1, time_str, -1, SQLITE_STATIC) != SQLITE_OK || sqlite3_bind_text(_query_stmt, 2, to_str(msg.level), -1, SQLITE_STATIC) != SQLITE_OK || - sqlite3_bind_text(_query_stmt, 3, msg.raw.c_str(), -1, nullptr) != SQLITE_OK || + sqlite3_bind_text(_query_stmt, 3, msg.raw.c_str(), -1, SQLITE_STATIC) != SQLITE_OK || sqlite3_bind_text(_query_stmt, 4, msg.logger_name.c_str(), -1, SQLITE_STATIC) != SQLITE_OK || sqlite3_bind_int(_query_stmt, 5, msg.thread_id) != SQLITE_OK) throw spdlog_ex(sqlite3_errmsg(_database));