[PATCH 03/23] archive.c: Fix coding style
- From
Elia Pinto <gitter.spiros@gmail.com>
- Date
- Apr 30, 2022, 04:13 UTC
- Message-ID
- <20220430041406.164719-4-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> --- archive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/archive.c b/archive.c index e29d0e00f6..654ea2a6ed 100644 --- a/archive.c +++ b/archive.c @@ -465,7 +465,7 @@ static void parse_treeish_arg(const char **argv, } tree = parse_tree_indirect(&oid); - if (tree == NULL) + if (!tree) die(_("not a tree object: %s"), oid_to_hex(&oid)); if (prefix) {
-- 2.35.1