mirror of
https://github.com/git/git.git
synced 2026-04-11 09:20:10 +02:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
98aa2eabf0
commit
3def06e625
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user