diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-27 23:33:42 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-27 23:33:42 +0200 |
commit | 7ae96e3fcfcd4f3d7c18965eb8805554a9e432bc (patch) | |
tree | cd741e42d51387ffcfd7baeaa79e27ba5b45d3ae /branch.c | |
parent | Merge branch 'ep/worktree-quiet-option' (diff) | |
parent | refactor various if (x) FREE_AND_NULL(x) to just FREE_AND_NULL(x) (diff) | |
download | git-7ae96e3fcfcd4f3d7c18965eb8805554a9e432bc.tar.xz git-7ae96e3fcfcd4f3d7c18965eb8805554a9e432bc.zip |
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 'branch.c')
-rw-r--r-- | branch.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -25,9 +25,7 @@ static int find_tracked_branch(struct remote *remote, void *priv) tracking->remote = remote->name; } else { free(tracking->spec.src); - if (tracking->src) { - FREE_AND_NULL(tracking->src); - } + FREE_AND_NULL(tracking->src); } tracking->spec.src = NULL; } |