summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 26c117d)
raw | patch | inline | side by side (parent: 26c117d)
author | Kjetil Barvik <barvik@broadpark.no> | |
Sun, 7 Jun 2009 11:33:05 +0000 (13:33 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 7 Jun 2009 23:23:04 +0000 (16:23 -0700) |
Add {}-braces around an else-part, where the if-part already has
{}-braces.
And, also remove some unnecessary "return;"-statements at the end of
"void foo()"-functions.
Signed-off-by: Kjetil Barvik <barvik@broadpark.no>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
{}-braces.
And, also remove some unnecessary "return;"-statements at the end of
"void foo()"-functions.
Signed-off-by: Kjetil Barvik <barvik@broadpark.no>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
symlinks.c | patch | blob | history |
diff --git a/symlinks.c b/symlinks.c
index 1d6b35b858020300f502e2a9341b82d4fa8a61fd..8dcd63261fff56e54c233224c6014b146d9bbeb3 100644 (file)
--- a/symlinks.c
+++ b/symlinks.c
cache.path[previous_slash] = '\0';
cache.len = previous_slash;
cache.flags = FL_DIR;
- } else
+ } else {
reset_lstat_cache();
+ }
}
}
removal.path[removal.len] != '/');
}
removal.len = new_len;
- return;
}
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;
}