summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-17 14:04:53 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-01-17 14:04:53 (GMT)
commit65124233da4b3e53643c896d38602318fcc549f0 (patch)
treef8f3628be6038da399511d6eda2298ed0e98cff4 /Source
parentaa63ab6d3e7bf320f17a5364a596355e3ab976e0 (diff)
parent2bba0bfc2c113a1ec94802ecfb8a836a385f919b (diff)
downloadCMake-65124233da4b3e53643c896d38602318fcc549f0.zip
CMake-65124233da4b3e53643c896d38602318fcc549f0.tar.gz
CMake-65124233da4b3e53643c896d38602318fcc549f0.tar.bz2
Merge topic 'file-GLOB-empty-no-crash'
2bba0bfc file: Fix crash on GLOB with no expressions after LIST_DIRECTORIES
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFileCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index d10c886..91cecb3 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -788,7 +788,7 @@ bool cmFileCommand::HandleGlobCommand(std::vector<std::string> const& args,
this->SetError("LIST_DIRECTORIES missing bool value.");
return false;
}
- ++i;
+ continue;
}
if (recurse && (*i == "FOLLOW_SYMLINKS")) {