summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/path.c b/path.c
index 84b3272d94..4d889473a7 100644
--- a/path.c
+++ b/path.c
@@ -181,7 +181,7 @@ char *enter_repo(char *path, int strict)
return NULL;
if (strict) {
- if((path[0] != '/') || chdir(path) < 0)
+ if (chdir(path) < 0)
return NULL;
}
else {