diff options
Diffstat (limited to 'libinotifytools/src/inotifytools.c')
-rw-r--r-- | libinotifytools/src/inotifytools.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libinotifytools/src/inotifytools.c b/libinotifytools/src/inotifytools.c index 6b0fb96..b3feca3 100644 --- a/libinotifytools/src/inotifytools.c +++ b/libinotifytools/src/inotifytools.c @@ -763,7 +763,9 @@ char * inotifytools_event_to_str_sep(int events, char sep) char * inotifytools_filename_from_wd( int wd ) { niceassert( init, "inotifytools_initialize not called yet" ); watch *w = watch_from_wd(wd); - if (!w) return 0; + if (!w) + return NULL; + return w->filename; } |