]> git.ipfire.org Git - thirdparty/git.git/blobdiff - grep.c
hash: provide per-algorithm null OIDs
[thirdparty/git.git] / grep.c
diff --git a/grep.c b/grep.c
index c5c348be55ddf062a538522a2a86f31d2dcc0c0d..8f91af1cb006f95ee25668f0c080ec09c745c141 100644 (file)
--- a/grep.c
+++ b/grep.c
@@ -1494,7 +1494,7 @@ static int fill_textconv_grep(struct repository *r,
                fill_filespec(df, gs->identifier, 1, 0100644);
                break;
        case GREP_SOURCE_FILE:
-               fill_filespec(df, &null_oid, 0, 0100644);
+               fill_filespec(df, null_oid(), 0, 0100644);
                break;
        default:
                BUG("attempt to textconv something without a path?");