diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmState.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index b66f403..f8971ad 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -1378,6 +1378,11 @@ template <typename T, typename U, typename V> void AppendEntry(T& content, U& backtraces, V& endContentPosition, const std::string& value, const cmListFileBacktrace& lfbt) { + if (value.empty()) + { + return; + } + assert(endContentPosition == content.size()); content.push_back(value); |