axkibe/lsyncd — Issue #62: Dead code removal.
Author: axkibe
Created: 2011-11-16 15:06:21+00:00
State: open

Originally filed by randy.re...@gmail.com on 2011-05-23T21:11:22

In the inotify.c file:

Line 181 has:
else if (IN_MOVED_FROM & event->mask) {

Line 196 has:
else if (IN_MOVED_FROM & event->mask) {

These conditions are exactly the same and belong to the same if block section. In other words the second time this condition appears will never be executed. I could see this leading to some confusion in the future so I thought I would bring it up.

Cheers,

Randy