ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostUpdate/HostUpdate.cpp
(Generate patch)

Comparing HostUpdate/HostUpdate.cpp (file contents):
Revision 900 by douglas, 2007-04-29T02:26:40-07:00 vs.
Revision 907 by douglas, 2007-04-29T11:27:53-07:00

# Line 193 | Line 193 | void HostUpdate::display()
193          {
194                  std::string file(ent->d_name);
195  
196 <                if (file == "." || file == "..")
196 >                if (file.empty() || file[0] == '.')
197                          continue;
198  
199                  Host host(file);
# Line 210 | Line 210 | void HostUpdate::display()
210          {
211                  std::string file(found.cFileName);
212  
213 <                if (file == "." || file == "..")
213 >                if (file.empty() || file[0] == '.')
214                          continue;
215  
216                  Host host(file);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines