aboutsummaryrefslogtreecommitdiff
path: root/lib/portability.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/portability.c')
-rw-r--r--lib/portability.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/portability.c b/lib/portability.c
index 726e42a9..7f81685f 100644
--- a/lib/portability.c
+++ b/lib/portability.c
@@ -193,7 +193,7 @@ int xnotify_wait(struct xnotify *not, char **path)
if (kevent(not->kq, NULL, 0, &event, 1, NULL) != -1) {
// We get the fd for free, but still have to search for the path.
for (i = 0; i<not->count; i++) if (not->fds[i]==event.ident) {
- *path = paths[i];
+ *path = not->paths[i];
return event.ident;
}