Skip to content

Commit 3def06e

Browse files
stefanbellergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 98aa2ea commit 3def06e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http-push.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ static void add_fetch_request(struct object *obj)
663663

664664
static int add_send_request(struct object *obj, struct remote_lock *lock)
665665
{
666-
struct transfer_request *request = request_queue_head;
666+
struct transfer_request *request;
667667
struct packed_git *target;
668668

669669
/* Keep locks active */

0 commit comments

Comments
 (0)