summaryrefslogtreecommitdiff
path: root/blame.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-27 14:33:42 -0700
committerJunio C Hamano <gitster@pobox.com>2018-08-27 14:33:42 -0700
commit7ae96e3fcfcd4f3d7c18965eb8805554a9e432bc (patch)
treecd741e42d51387ffcfd7baeaa79e27ba5b45d3ae /blame.c
parenta988ce9a580bb1cae6fbeead69eff53b113a373c (diff)
parentce528de023f82d767096b0342b6da8039feff7bc (diff)
downloadgit-7ae96e3fcfcd4f3d7c18965eb8805554a9e432bc.tar.gz
Merge branch 'ab/unconditional-free-and-null'
Code clean-up. * ab/unconditional-free-and-null: refactor various if (x) FREE_AND_NULL(x) to just FREE_AND_NULL(x)
Diffstat (limited to 'blame.c')
-rw-r--r--blame.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/blame.c b/blame.c
index 08c0c6cf73..aca06f4b12 100644
--- a/blame.c
+++ b/blame.c
@@ -337,9 +337,7 @@ static void fill_origin_blob(struct diff_options *opt,
static void drop_origin_blob(struct blame_origin *o)
{
- if (o->file.ptr) {
- FREE_AND_NULL(o->file.ptr);
- }
+ FREE_AND_NULL(o->file.ptr);
}
/*