diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-05-02 19:06:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-02 19:06:04 +0200 |
commit | 2b0a58d164b0642be3eeb476fecd28114445cdd5 (patch) | |
tree | 2759549fcdd5d3ce4c9776f67937b4b75c07070f /builtin/diff.c | |
parent | Git 2.35.3 (diff) | |
parent | tree-wide: apply equals-null.cocci (diff) | |
download | git-2b0a58d164b0642be3eeb476fecd28114445cdd5.tar.xz git-2b0a58d164b0642be3eeb476fecd28114445cdd5.zip |
Merge branch 'ep/maint-equals-null-cocci' for maint-2.35
* ep/maint-equals-null-cocci:
tree-wide: apply equals-null.cocci
contrib/coccinnelle: add equals-null.cocci
Diffstat (limited to 'builtin/diff.c')
-rw-r--r-- | builtin/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/diff.c b/builtin/diff.c index fa4683377e..8dd4909b97 100644 --- a/builtin/diff.c +++ b/builtin/diff.c @@ -352,7 +352,7 @@ static void symdiff_prepare(struct rev_info *rev, struct symdiff *sym) othercount++; continue; } - if (map == NULL) + if (!map) map = bitmap_new(); bitmap_set(map, i); } |