summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 09db444)
raw | patch | inline | side by side (parent: 09db444)
author | Mark Wooding <mdw@distorted.org.uk> | |
Wed, 1 Feb 2006 11:44:35 +0000 (11:44 +0000) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 6 Feb 2006 00:49:16 +0000 (16:49 -0800) |
move_temp_to_file returns 0 or -1. This is not a good thing to pass to
strerror(3). Fortunately, someone already reported the error, so don't
worry too much.
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
strerror(3). Fortunately, someone already reported the error, so don't
worry too much.
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-fetch.c | patch | blob | history |
diff --git a/http-fetch.c b/http-fetch.c
index 7b1b2a02dc873b8d3a3a17c3e4f3c0a389d28f6d..555e95d5a89e7ae0e0370e66102b9e15987c8a4c 100644 (file)
--- a/http-fetch.c
+++ b/http-fetch.c
} else if (memcmp(obj_req->sha1, obj_req->real_sha1, 20)) {
ret = error("File %s has bad hash\n", hex);
} else if (obj_req->rename < 0) {
- ret = error("unable to write sha1 filename %s: %s",
- obj_req->filename,
- strerror(obj_req->rename));
+ ret = error("unable to write sha1 filename %s",
+ obj_req->filename);
}
release_object_request(obj_req);