summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-12-09 03:35:19 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-12-09 03:35:19 (GMT)
commite7d1a299fb352a9f4cb8cdca9d6983f898beb374 (patch)
tree2495032acce84ff08347978caf0fd9a9ad2aebab /Source
parent39714fb179c5164ef96b251b82d08e930d6bdc50 (diff)
downloadCMake-e7d1a299fb352a9f4cb8cdca9d6983f898beb374.zip
CMake-e7d1a299fb352a9f4cb8cdca9d6983f898beb374.tar.gz
CMake-e7d1a299fb352a9f4cb8cdca9d6983f898beb374.tar.bz2
Fix bug in globbing. Now it actually uses only files or directories that result in globbing not the ones that were is the vector before
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSystemTools.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index b5ebed2..40fafe2 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -2291,6 +2291,7 @@ bool cmSystemTools::SimpleGlob(const std::string& glob,
std::vector<std::string>& files,
int type /* = 0 */)
{
+ files.clear();
if ( glob[glob.size()-1] != '*' )
{
return false;