diff options
Diffstat (limited to 'base/files')
-rw-r--r-- | base/files/file_path_watcher_linux.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/files/file_path_watcher_linux.cc b/base/files/file_path_watcher_linux.cc index 205a3eb..d77b039 100644 --- a/base/files/file_path_watcher_linux.cc +++ b/base/files/file_path_watcher_linux.cc @@ -373,10 +373,10 @@ bool FilePathWatcherImpl::Watch(const FilePath& path, std::vector<FilePath::StringType> comps; target_.GetComponents(&comps); DCHECK(!comps.empty()); - for (std::vector<FilePath::StringType>::const_iterator comp(++comps.begin()); - comp != comps.end(); ++comp) { + std::vector<FilePath::StringType>::const_iterator comp = comps.begin(); + for (++comp; comp != comps.end(); ++comp) watches_.push_back(WatchEntry(InotifyReader::kInvalidWatch, *comp)); - } + watches_.push_back(WatchEntry(InotifyReader::kInvalidWatch, FilePath::StringType())); return UpdateWatches(); |