Skip to content

Commit

Permalink
fix: panic: assignment to entry in nil map
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Mar 6, 2024
1 parent 9d22c12 commit 2a8aed8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ func NewWatcher() (*Watcher, error) {
kq: kq,
closepipe: closepipe,
watches: make(map[string]int),
dirFlags: make(map[string]uint32),
paths: make(map[int]pathInfo),
fileExists: make(map[string]bool),
externalWatches: make(map[string]bool),
Events: make(chan Event),
Errors: make(chan error),
Expand Down

0 comments on commit 2a8aed8

Please sign in to comment.