]> git.ipfire.org Git - thirdparty/git.git/blobdiff - archive.c
Merge branch 'ep/maint-equals-null-cocci' for maint-2.35
[thirdparty/git.git] / archive.c
index d571249cf393396ca9815cf805f39b3d3d82c2d6..5068fa8dcc0a980dcef62cce52bff1fd0380a499 100644 (file)
--- 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) {