[PATCH] git-apply: Don't barf when --stat'ing a diff with no line changes.
[gitweb.git] / delta.c
diff --git a/delta.c b/delta.c
index b31957a1d38046b9ead2569bbdd59be061f0157b..db85989e71b7f33c4ddd80ae9b1cbad10461856a 100644 (file)
--- a/delta.c
+++ b/delta.c
@@ -17,7 +17,7 @@ struct delta {
        } u;
 };
 
-struct delta *lookup_delta(unsigned char *sha1)
+struct delta *lookup_delta(const unsigned char *sha1)
 {
        struct object *obj = lookup_object(sha1);
        if (!obj) {