summaryrefslogtreecommitdiff
path: root/src/sqlite3_db.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2015-05-28 21:28:39 +0200
committerJoel Klinghed <the_jk@yahoo.com>2015-05-28 21:28:39 +0200
commite0e50d64326887ed1403e90479244d9baba972d1 (patch)
tree9276ca584c460d94f375aae114e76dbee0b50869 /src/sqlite3_db.cc
parentba57700c8ce8fc4e0641ff3052ceea6f5ccf8295 (diff)
Fix misshandling of set(name, nullptr, 0) in DB::Editor
Diffstat (limited to 'src/sqlite3_db.cc')
-rw-r--r--src/sqlite3_db.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sqlite3_db.cc b/src/sqlite3_db.cc
index 8dad591..3415d15 100644
--- a/src/sqlite3_db.cc
+++ b/src/sqlite3_db.cc
@@ -191,7 +191,7 @@ public:
void set(const std::string& name, const void* data,
size_t size) override {
if (!data) {
- set(name, nullptr);
+ set_null(name);
blob_.erase(name);
} else {
auto ptr = reinterpret_cast<const char*>(data);