diff options
-rw-r--r-- | source4/ntvfs/common/notify.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ntvfs/common/notify.c b/source4/ntvfs/common/notify.c index 452b8188f0..a701880701 100644 --- a/source4/ntvfs/common/notify.c +++ b/source4/ntvfs/common/notify.c @@ -609,9 +609,10 @@ void notify_trigger(struct notify_context *notify, while (min_i < max_i) { struct notify_entry *e; + int cmp; i = (min_i+max_i)/2; e = &d->entries[i]; - int cmp = strncmp(path, e->path, p_len); + cmp = strncmp(path, e->path, p_len); if (cmp == 0) { if (p_len == e->path_len) { max_i = i; |