mirror of https://github.com/git/git.git
Merge branch 'cb/http-push-null-in-message-fix'
Code clean-up. * cb/http-push-null-in-message-fix: http-push: prevent format overflow warning with gcc >= 9
This commit is contained in:
commit
8cbad4935e
|
@ -526,8 +526,8 @@ static void finish_request(struct transfer_request *request)
|
||||||
if (request->headers != NULL)
|
if (request->headers != NULL)
|
||||||
curl_slist_free_all(request->headers);
|
curl_slist_free_all(request->headers);
|
||||||
|
|
||||||
/* URL is reused for MOVE after PUT */
|
/* URL is reused for MOVE after PUT and used during FETCH */
|
||||||
if (request->state != RUN_PUT) {
|
if (request->state != RUN_PUT && request->state != RUN_FETCH_PACKED) {
|
||||||
FREE_AND_NULL(request->url);
|
FREE_AND_NULL(request->url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue