# | 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); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |