summaryrefslogtreecommitdiff
path: root/file
diff options
context:
space:
mode:
Diffstat (limited to 'file')
-rw-r--r--file/git-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file/git-util.c b/file/git-util.c
index 3658ed5..78a500e 100644
--- a/file/git-util.c
+++ b/file/git-util.c
@@ -144,7 +144,7 @@ int git_repository_open_ext_caching(git_repository **out, const char *path,
slash = strrchr(tmp, '/');
if (slash)
- slash = 0;
+ *slash = 0;
else
strcpy(tmp, ".");
res = do_git_repository_open_ext_caching(out, tmp, flags, ceiling_dirs);