diff --git a/inotify.c b/inotify.c index 3585f47..ad7be12 100644 --- a/inotify.c +++ b/inotify.c @@ -355,7 +355,7 @@ inotify_insert_file(char * name, const char * path) if( strcmp(parent_buf, "/") == 0 ) { - id = calloc(1, 3); + id = strdup(BROWSEDIR_ID); depth = 0; break; }