summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5ad312b)
raw | patch | inline | side by side (parent: 5ad312b)
author | Nick Hengeveld <nickh@reactrix.com> | |
Wed, 7 Jun 2006 05:22:35 +0000 (22:22 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 7 Jun 2006 05:32:51 +0000 (22:32 -0700) |
Initialize an object request's slot to a safe value. A non-NULL value
can cause a segfault if the request is aborted before it starts.
Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
can cause a segfault if the request is aborted before it starts.
Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
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 661c909152925ea3c9a375c13121200067e97cd2..d3602b7d7d820a37b6395a7aeb96a8dc8368a646 100644 (file)
--- a/http-fetch.c
+++ b/http-fetch.c
snprintf(newreq->filename, sizeof(newreq->filename), "%s", filename);
snprintf(newreq->tmpfile, sizeof(newreq->tmpfile),
"%s.temp", filename);
+ newreq->slot = NULL;
newreq->next = NULL;
if (object_queue_head == NULL) {