]> git.ipfire.org Git - thirdparty/git.git/blobdiff - range-diff.c
hash: provide per-algorithm null OIDs
[thirdparty/git.git] / range-diff.c
index 116fb0735c6f4908b126d8471c9a8a52be9ccc21..1a4471fe4ccabf7cf8f6179955895c2d2387cfb9 100644 (file)
@@ -445,7 +445,7 @@ static struct diff_filespec *get_filespec(const char *name, const char *p)
 {
        struct diff_filespec *spec = alloc_filespec(name);
 
-       fill_filespec(spec, &null_oid, 0, 0100644);
+       fill_filespec(spec, null_oid(), 0, 0100644);
        spec->data = (char *)p;
        spec->size = strlen(p);
        spec->should_munmap = 0;