summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-05-19 07:45:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-05-19 07:45:35 (GMT)
commit8cbad4935e7ed47934476d7df61e5758aca074e9 (patch)
tree606e1a3f76e8597bb8a0bca4b4e2840619b33f2a /http-push.c
parent4ecaedec042d8114872dd1912b84f420c8a34ccd (diff)
parent9dde06de130463c20f8b603ed3a3ffe10347f2f1 (diff)
downloadgit-8cbad4935e7ed47934476d7df61e5758aca074e9.zip
git-8cbad4935e7ed47934476d7df61e5758aca074e9.tar.gz
git-8cbad4935e7ed47934476d7df61e5758aca074e9.tar.bz2
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
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/http-push.c b/http-push.c
index f675a96..e36561a 100644
--- a/http-push.c
+++ b/http-push.c
@@ -526,8 +526,8 @@ static void finish_request(struct transfer_request *request)
if (request->headers != NULL)
curl_slist_free_all(request->headers);
- /* URL is reused for MOVE after PUT */
- if (request->state != RUN_PUT) {
+ /* URL is reused for MOVE after PUT and used during FETCH */
+ if (request->state != RUN_PUT && request->state != RUN_FETCH_PACKED) {
FREE_AND_NULL(request->url);
}