Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-p4: Clean up git-p4 submit's log message handling.
[gitweb.git]
/
builtin-blame.c
diff --git
a/builtin-blame.c
b/builtin-blame.c
index 2d4a3e150081e350ebe28fd3e677708a94c1f548..59d7237f21f406b71aabc66ea7997faf98981869 100644
(file)
--- a/
builtin-blame.c
+++ b/
builtin-blame.c
@@
-1894,9
+1894,7
@@
static unsigned parse_score(const char *arg)
static const char *add_prefix(const char *prefix, const char *path)
{
- if (!prefix || !prefix[0])
- return path;
- return prefix_path(prefix, strlen(prefix), path);
+ return prefix_path(prefix, prefix ? strlen(prefix) : 0, path);
}
/*