diff options
Diffstat (limited to 'src/win/fs-event.c')
-rw-r--r-- | src/win/fs-event.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/win/fs-event.c b/src/win/fs-event.c index 25809ea4..1244967a 100644 --- a/src/win/fs-event.c +++ b/src/win/fs-event.c @@ -215,11 +215,11 @@ int uv_fs_event_start(uv_fs_event_t* handle, uv__free(long_path); long_path = NULL; } - } - if (long_path) { - uv__free(pathw); - pathw = long_path; + if (long_path) { + uv__free(pathw); + pathw = long_path; + } } dir_to_watch = pathw; |