]> git.ipfire.org Git - thirdparty/git.git/blobdiff - refs.c
Fixed GPF in fast-import caused by unterminated linked list.
[thirdparty/git.git] / refs.c
diff --git a/refs.c b/refs.c
index 17cd0cef3c9819d70083554f99d8f09391171db1..e70ef0ae0fe58671a35b71a55fbf81425ee84581 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -29,7 +29,7 @@ const char *resolve_ref(const char *path, unsigned char *sha1, int reading)
                if (lstat(path, &st) < 0) {
                        if (reading || errno != ENOENT)
                                return NULL;
-                       memset(sha1, 0, 20);
+                       hashclr(sha1);
                        return path;
                }