@@ -412,12 +412,12 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c
412412
413413 if (i % 20 == 0 && t -> rpc ) {
414414 git_pkt_ack * pkt ;
415- unsigned int i ;
415+ unsigned int j ;
416416
417417 if ((error = git_pkt_buffer_wants (wants , count , & t -> caps , & data )) < 0 )
418418 goto on_error ;
419419
420- git_vector_foreach (& t -> common , i , pkt ) {
420+ git_vector_foreach (& t -> common , j , pkt ) {
421421 if ((error = git_pkt_buffer_have (& pkt -> oid , & data )) < 0 )
422422 goto on_error ;
423423 }
@@ -432,12 +432,12 @@ int git_smart__negotiate_fetch(git_transport *transport, git_repository *repo, c
432432 /* Tell the other end that we're done negotiating */
433433 if (t -> rpc && t -> common .length > 0 ) {
434434 git_pkt_ack * pkt ;
435- unsigned int i ;
435+ unsigned int j ;
436436
437437 if ((error = git_pkt_buffer_wants (wants , count , & t -> caps , & data )) < 0 )
438438 goto on_error ;
439439
440- git_vector_foreach (& t -> common , i , pkt ) {
440+ git_vector_foreach (& t -> common , j , pkt ) {
441441 if ((error = git_pkt_buffer_have (& pkt -> oid , & data )) < 0 )
442442 goto on_error ;
443443 }
@@ -728,7 +728,7 @@ static int add_push_report_pkt(git_push *push, git_pkt *pkt)
728728static int add_push_report_sideband_pkt (git_push * push , git_pkt_data * data_pkt , git_buf * data_pkt_buf )
729729{
730730 git_pkt * pkt ;
731- const char * line , * line_end ;
731+ const char * line , * line_end = NULL ;
732732 size_t line_len ;
733733 int error ;
734734 int reading_from_buf = data_pkt_buf -> size > 0 ;
0 commit comments