]> git.ipfire.org Git - thirdparty/git.git/commitdiff
object-file: fix sparse 'plain integer as NULL pointer' error
authorRamsay Jones <ramsay@ramsayjones.plus.com>
Thu, 19 Mar 2026 22:49:06 +0000 (22:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2026 01:35:49 +0000 (18:35 -0700)
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c

index 569ce6eaed95d4940974a3c24e1bb0bd50dc574f..fa2ca60a5941e8786b5cd247b7fdf5bf46f9b9b2 100644 (file)
@@ -1916,7 +1916,7 @@ int odb_source_loose_count_objects(struct odb_source *source,
        } else {
                *out = 0;
                ret = odb_source_loose_for_each_object(source, NULL, count_loose_object,
-                                                      out, 0);
+                                                      out, NULL);
        }
 
 out: