X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=symlinks.c;h=8dcd63261fff56e54c233224c6014b146d9bbeb3;hb=ea1b9b948da8ec3fec186d56e0b33ee07842601a;hp=1d6b35b858020300f502e2a9341b82d4fa8a61fd;hpb=d1f6c18bd6ea5fd373f9f6356e02854678ffa0fd;p=git.git diff --git a/symlinks.c b/symlinks.c index 1d6b35b85..8dcd63261 100644 --- a/symlinks.c +++ b/symlinks.c @@ -196,8 +196,9 @@ void invalidate_lstat_cache(const char *name, int len) cache.path[previous_slash] = '\0'; cache.len = previous_slash; cache.flags = FL_DIR; - } else + } else { reset_lstat_cache(); + } } } @@ -263,7 +264,6 @@ static void do_remove_scheduled_dirs(int new_len) removal.path[removal.len] != '/'); } removal.len = new_len; - return; } void schedule_dir_for_removal(const char *name, int len) @@ -296,11 +296,9 @@ void schedule_dir_for_removal(const char *name, int len) last_slash - match_len); removal.len = last_slash; } - return; } void remove_scheduled_dirs(void) { do_remove_scheduled_dirs(0); - return; }