From 23f2862929cc21c32c4a7ceb4bbdca0aafcb9454 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 13 Jan 2024 21:52:27 +0100 Subject: [PATCH] Add an assert. --- src/lib/util.cc | 1 + 1 file changed, 1 insertion(+) 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 files, boost::uintmax_t size) string simple_digest (vector paths) { + DCP_ASSERT(!paths.empty()); return digest_head_tail(paths, 1000000) + raw_convert(dcp::filesystem::file_size(paths.front())); } -- 2.30.2