Merge branch 'sticker_errors' of https://github.com/jcorporation/MPD
This commit is contained in:
@@ -233,11 +233,9 @@ StickerDatabase::StoreValue(const char *type, const char *uri,
|
||||
assert(type != nullptr);
|
||||
assert(uri != nullptr);
|
||||
assert(name != nullptr);
|
||||
assert(*name != 0);
|
||||
assert(value != nullptr);
|
||||
|
||||
if (StringIsEmpty(name))
|
||||
return;
|
||||
|
||||
sqlite3_stmt *const s = stmt[STICKER_SQL_SET];
|
||||
|
||||
BindAll(s, type, uri, name, value, value);
|
||||
@@ -326,6 +324,7 @@ StickerDatabase::DeleteValue(const char *type, const char *uri,
|
||||
|
||||
assert(type != nullptr);
|
||||
assert(uri != nullptr);
|
||||
assert(name != nullptr);
|
||||
|
||||
BindAll(s, type, uri, name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user