Unverified Commit 71bb92b5 by Edward Thomson Committed by GitHub

Update src/libgit2/diff_print.c

parent d427f952
......@@ -316,10 +316,9 @@ static int diff_print_oid_range(
static int diff_delta_format_path(
git_str *out, const char *prefix, const char *filename)
{
if (!filename)
{
if (!filename) {
/* don't prefix "/dev/null" */
return git_str_puts(out, "/dev/null");
return git_str_puts(out, "/dev/null");
}
if (git_str_joinpath(out, prefix, filename) < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment