From c83f3b3c4cbb828e19760901cbf542e4fced64c5 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Mon, 5 Jan 2004 16:29:18 -0500 Subject: [PATCH] fix for glob command --- Source/cmGlob.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/cmGlob.cxx b/Source/cmGlob.cxx index 3eb71ecc1..20db17e7e 100644 --- a/Source/cmGlob.cxx +++ b/Source/cmGlob.cxx @@ -263,8 +263,8 @@ bool cmGlob::FindFiles(const std::string& inexpr) std::string::size_type cc; std::string expr = inexpr; - m_Internals->Expressions.empty(); - m_Internals->Files.empty(); + m_Internals->Expressions.clear(); + m_Internals->Files.clear(); if ( !cmsys::SystemTools::FileIsFullPath(expr.c_str()) ) { @@ -273,7 +273,6 @@ bool cmGlob::FindFiles(const std::string& inexpr) } int skip = 0; - int last_slash = 0; for ( cc = 0; cc < expr.size(); cc ++ ) {