Fix missing initialization in filesystem-change-evt

This commit is contained in:
Tobias Hammer 2013-08-27 14:07:32 +02:00 committed by Matthew Flatt
parent 83aa8bc07b
commit e6886e4213

View File

@ -170,7 +170,10 @@ static int mz_inotify_add(char *filename)
s->wds = new_wds;
s->size = new_size;
for (i = s->count; i < s->size; i++)
{
s->wds[i].wd = -1;
s->wds[i].refcount = 0;
}
}
wd = inotify_add_watch(s->fd, filename,