Merge branch 'sticker_errors' of https://github.com/jcorporation/MPD

This commit is contained in:
Max Kellermann
2025-01-30 10:48:03 +01:00
2 changed files with 21 additions and 6 deletions
+2 -3
View File
@@ -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);