diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-05-02 18:50:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-02 18:50:37 +0200 |
commit | afe8a9070bc62db9cfde1e30147178c40d391d93 (patch) | |
tree | d237acac7915db89829db7da1d0405f2e595a68b /merge-ort.c | |
parent | contrib/coccinnelle: add equals-null.cocci (diff) | |
download | git-afe8a9070bc62db9cfde1e30147178c40d391d93.tar.xz git-afe8a9070bc62db9cfde1e30147178c40d391d93.zip |
tree-wide: apply equals-null.cocci
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'merge-ort.c')
-rw-r--r-- | merge-ort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/merge-ort.c b/merge-ort.c index 0342f10483..e5248b1d9f 100644 --- a/merge-ort.c +++ b/merge-ort.c @@ -2018,7 +2018,7 @@ static char *handle_path_level_conflicts(struct merge_options *opt, * to ensure that's the case. */ c_info = strmap_get(collisions, new_path); - if (c_info == NULL) + if (!c_info) BUG("c_info is NULL"); /* @@ -4574,7 +4574,7 @@ static void merge_ort_internal(struct merge_options *opt, } merged_merge_bases = pop_commit(&merge_bases); - if (merged_merge_bases == NULL) { + if (!merged_merge_bases) { /* if there is no common ancestor, use an empty tree */ struct tree *tree; |