diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-25 13:04:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-25 13:04:05 +0200 |
commit | 5d084dcd0f24237486e18f024fbbb14c13b8bffe (patch) | |
tree | 010fd3339ca55cd83877d863e88f21c89bf1a18c | |
parent | 7939f7972cf22ee9a74518978e4f7d4d77535e09 (diff) |
Check if is_null pointer is not NULL before dereferencing it
-rw-r--r-- | odb/sqlite/statement.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/sqlite/statement.cxx b/odb/sqlite/statement.cxx index aa87939..0975545 100644 --- a/odb/sqlite/statement.cxx +++ b/odb/sqlite/statement.cxx @@ -60,7 +60,7 @@ namespace odb const bind& b (p[i]); int j (static_cast<int> (i + start_param)); - if (*b.is_null) + if (b.is_null != 0 && *b.is_null) { e = sqlite3_bind_null (stmt_, j); continue; |