diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-27 14:33:42 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-27 14:33:42 -0700 |
commit | 7ae96e3fcfcd4f3d7c18965eb8805554a9e432bc (patch) | |
tree | cd741e42d51387ffcfd7baeaa79e27ba5b45d3ae /blame.c | |
parent | a988ce9a580bb1cae6fbeead69eff53b113a373c (diff) | |
parent | ce528de023f82d767096b0342b6da8039feff7bc (diff) | |
download | git-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); } /* |