Add an assert.
authorCarl Hetherington <cth@carlh.net>
Sat, 13 Jan 2024 20:52:27 +0000 (21:52 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 13 Jan 2024 20:52:27 +0000 (21:52 +0100)
src/lib/util.cc

index 997470a210d9437d87efa81a8bf1e12a81e8d69e..7f6e9da5aff95feaee14a7cac247952d2e5cbd5d 100644 (file)
@@ -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()));
 }