projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Return empty optional rather than asserting.
[dcpomatic.git]
/
src
/
lib
/
config.cc
diff --git
a/src/lib/config.cc
b/src/lib/config.cc
index 1126d0bbd2fc7a64225c986eccb4385149413d39..7b4d67822736c9e9146b65560d52392e61c0a2d2 100644
(file)
--- a/
src/lib/config.cc
+++ b/
src/lib/config.cc
@@
-1645,7
+1645,9
@@
optional<boost::filesystem::path>
Config::initial_path(string id) const
{
auto iter = _initial_paths.find(id);
- DCPOMATIC_ASSERT(iter != _initial_paths.end());
+ if (iter == _initial_paths.end()) {
+ return {};
+ }
return iter->second;
}