summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <stefanbeller@googlemail.com>2013-07-18 23:35:26 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-07-19 11:15:17 -0700
commit3def06e625099907fb44c519611188904b6937a2 (patch)
tree653f06a89b30e915e6c41e25fbe973a0b37a200f
parentMerge branch 'tr/test-lint-no-export-assignment-in-shell' into maint (diff)
downloadtgif-3def06e625099907fb44c519611188904b6937a2.tar.xz
http-push.c::add_send_request(): do not initialize transfer_request
That pointer will be assigned to new memory via request = xmalloc(sizeof(*request)); 20 lines later unconditionally anyway, so it's safe to not assign it to an arbitrary variable. Signed-off-by: Stefan Beller <stefanbeller@googlemail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--http-push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c
index 395a8cfc10..6dad188b5f 100644
--- a/http-push.c
+++ b/http-push.c
@@ -663,7 +663,7 @@ static void add_fetch_request(struct object *obj)
static int add_send_request(struct object *obj, struct remote_lock *lock)
{
- struct transfer_request *request = request_queue_head;
+ struct transfer_request *request;
struct packed_git *target;
/* Keep locks active */