diff options
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; |