summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-01-13 21:52:27 +0100
committerCarl Hetherington <cth@carlh.net>2024-01-13 21:52:27 +0100
commit23f2862929cc21c32c4a7ceb4bbdca0aafcb9454 (patch)
treea020d2199611686b116aff9c7908ac188b4eefff
parent95bb28e497463e9d424fdb33296c62dd1570f355 (diff)
Add an assert.
-rw-r--r--src/lib/util.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 997470a21..7f6e9da5a 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -598,6 +598,7 @@ digest_head_tail (vector<boost::filesystem::path> files, boost::uintmax_t size)
string
simple_digest (vector<boost::filesystem::path> paths)
{
+ DCP_ASSERT(!paths.empty());
return digest_head_tail(paths, 1000000) + raw_convert<string>(dcp::filesystem::file_size(paths.front()));
}