summaryrefslogtreecommitdiff
path: root/watch_list.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2009-11-20 14:38:45 (GMT)
committerChristian Pointner <equinox@helsinki.at>2009-11-20 14:38:45 (GMT)
commitdaed3944256cc529f1908bfa8a5e5cacbe1123c8 (patch)
treee5d2567f25ef88477180495262f8ba6e1a6fed17 /watch_list.c
parent16d3ccb1dd701665b1b138a48b4701108c141361 (diff)
removing directories from watch list when they are deleted or moved
Diffstat (limited to 'watch_list.c')
-rw-r--r--watch_list.c2
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;