summaryrefslogtreecommitdiff
path: root/hash-object.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-28 03:19:03 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-28 23:13:03 -0800
commit99e01692063cc48adee19e1f738472a579c14ca2 (patch)
tree7e0891caecdfd2516bb3953e46b74e8114dbdec5 /hash-object.c
parentd165fa14f0a111dfc85d964ecc037d0b280cd54f (diff)
downloadgit-99e01692063cc48adee19e1f738472a579c14ca2.tar.gz
hash-object.c: type-fix to squelch compiler warnings.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'hash-object.c')
-rw-r--r--hash-object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hash-object.c b/hash-object.c
index c3d05a853a..ccba11cb32 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);