summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project2/fsRows.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/project2/fsRows.cpp b/project2/fsRows.cpp
index 486dc90..b55e058 100644
--- a/project2/fsRows.cpp
+++ b/project2/fsRows.cpp
@@ -177,7 +177,8 @@ FsRows::execute(const Path & dir, const RowProcessor * rp) const
{
depth += 1;
try {
- for (DirEnt itr(dir); itr != DirEnt(); ++itr) {
+ DirEnt end;
+ for (DirEnt itr(dir); itr != end; ++itr) {
curPathStr = itr->path().string();
curPath = itr->path();
stat(curPathStr.c_str(), &curStat);