diff options
author | Christian Pointner <equinox@helsinki.at> | 2009-11-20 14:38:45 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2009-11-20 14:38:45 (GMT) |
commit | daed3944256cc529f1908bfa8a5e5cacbe1123c8 (patch) | |
tree | e5d2567f25ef88477180495262f8ba6e1a6fed17 /watch_list.c | |
parent | 16d3ccb1dd701665b1b138a48b4701108c141361 (diff) |
removing directories from watch list when they are deleted or moved
Diffstat (limited to 'watch_list.c')
-rw-r--r-- | watch_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/watch_list.c b/watch_list.c index 28ca97d..7e23b93 100644 --- a/watch_list.c +++ b/watch_list.c @@ -90,7 +90,7 @@ int watch_list_add(watch_list_t* list, int watch_fd, const char* string) void watch_list_rm(watch_list_t* list, const char* path) { - if(!list) + if(!list || !path) return; watch_list_element_t* tmp = NULL; |