projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95bb28e
)
Add an assert.
author
Carl Hetherington
<cth@carlh.net>
Sat, 13 Jan 2024 20:52:27 +0000
(21:52 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 13 Jan 2024 20:52:27 +0000
(21:52 +0100)
src/lib/util.cc
patch
|
blob
|
history
diff --git
a/src/lib/util.cc
b/src/lib/util.cc
index 997470a210d9437d87efa81a8bf1e12a81e8d69e..7f6e9da5aff95feaee14a7cac247952d2e5cbd5d 100644
(file)
--- 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()));
}