[PATCH 10/23] builtin/diff.c: Fix coding style
- From
Elia Pinto <gitter.spiros@gmail.com>
- Date
- Apr 30, 2022, 04:13 UTC
- Message-ID
- <20220430041406.164719-11-gitter.spiros@gmail.com>
- In-Reply-To
- <20220430041406.164719-1-gitter.spiros@gmail.com>
Adhere to the git coding style which requires "Do not explicitly compute an integral value with constant 0 or '\ 0', or a pointer value with constant NULL."
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> --- builtin/diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/diff.c b/builtin/diff.c index bb7fafca61..3397f44d5a 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); }
-- 2.35.1