| Index: chrome/common/sqlite_utils.cc
|
| diff --git a/chrome/common/sqlite_utils.cc b/chrome/common/sqlite_utils.cc
|
| index 8e108a744639e2da2b462a3632d3a9b5919ac8d9..b99b8f26a678a1b16fdd0567db402f2a1d2b2e7a 100644
|
| --- a/chrome/common/sqlite_utils.cc
|
| +++ b/chrome/common/sqlite_utils.cc
|
| @@ -323,7 +323,7 @@ int SQLStatement::bind_parameter_count() {
|
|
|
| int SQLStatement::bind_blob(int index, std::vector<unsigned char>* blob) {
|
| if (blob) {
|
| - const void* value = &(*blob)[0];
|
| + const void* value = blob->empty() ? NULL : &(*blob)[0];
|
| int len = static_cast<int>(blob->size());
|
| return bind_blob(index, value, len);
|
| } else {
|
|
|