aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/DatabasePrint.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/DatabasePrint.cxx')
-rw-r--r--src/db/DatabasePrint.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/db/DatabasePrint.cxx b/src/db/DatabasePrint.cxx
index 2a13b28e6..781866272 100644
--- a/src/db/DatabasePrint.cxx
+++ b/src/db/DatabasePrint.cxx
@@ -261,6 +261,8 @@ listAllUniqueTags(Client &client, unsigned type,
std::ref(client), _1);
return db->Visit(selection, f, error);
} else {
+ assert(type < TAG_NUM_OF_ITEM_TYPES);
+
using namespace std::placeholders;
const auto f = std::bind(PrintUniqueTag, std::ref(client),
(TagType)type, _1);