aboutsummaryrefslogtreecommitdiff
path: root/hash-object.c
diff options
context:
space:
mode:
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 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);