From 99e01692063cc48adee19e1f738472a579c14ca2 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 28 Nov 2005 03:19:03 -0800 Subject: [PATCH] hash-object.c: type-fix to squelch compiler warnings. Signed-off-by: Junio C Hamano --- hash-object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hash-object.c b/hash-object.c index c3d05a853..ccba11cb3 100644 --- a/hash-object.c +++ b/hash-object.c @@ -29,7 +29,7 @@ int main(int argc, char **argv) int i; const char *type = "blob"; int write_object = 0; - const char *prefix; + const char *prefix = NULL; int prefix_length = -1; for (i = 1 ; i < argc; i++) { @@ -46,7 +46,7 @@ int main(int argc, char **argv) write_object = 1; } else { - char *arg = argv[i]; + const char *arg = argv[i]; if (0 <= prefix_length) arg = prefix_filename(prefix, prefix_length, arg); -- 2.30.2