]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff-no-index.c
hash: provide per-algorithm null OIDs
[thirdparty/git.git] / diff-no-index.c
index 7814eabfe0289125fd50d4f3b0bba06fe08ccac4..308922e2b331362e11ac1c86a0e28802c960b8cf 100644 (file)
@@ -83,7 +83,7 @@ static struct diff_filespec *noindex_filespec(const char *name, int mode)
        if (!name)
                name = "/dev/null";
        s = alloc_filespec(name);
-       fill_filespec(s, &null_oid, 0, mode);
+       fill_filespec(s, null_oid(), 0, mode);
        if (name == file_from_standard_input)
                populate_from_stdin(s);
        return s;