mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 17:07:36 +08:00
[DirectoryWatcher][linux] Fix use of uninitialized value
llvm-svn: 365966
This commit is contained in:
@@ -220,8 +220,8 @@ void DirectoryWatcherLinux::InotifyPollingLoop() {
|
||||
|
||||
// Multiple epoll_events can be received for a single file descriptor per
|
||||
// epoll_wait call.
|
||||
for (const auto &EpollEvent : EpollEventBuffer) {
|
||||
if (EpollEvent.data.fd == InotifyPollingStopSignal.FDRead) {
|
||||
for (int i = 0; i < EpollWaitResult; ++i) {
|
||||
if (EpollEventBuffer[i].data.fd == InotifyPollingStopSignal.FDRead) {
|
||||
StopWork();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user