Skip to content

Commit 8cbad49

Browse files
committed
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
2 parents 4ecaede + 9dde06d commit 8cbad49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http-push.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ static void finish_request(struct transfer_request *request)
526526
if (request->headers != NULL)
527527
curl_slist_free_all(request->headers);
528528

529-
/* URL is reused for MOVE after PUT */
530-
if (request->state != RUN_PUT) {
529+
/* URL is reused for MOVE after PUT and used during FETCH */
530+
if (request->state != RUN_PUT && request->state != RUN_FETCH_PACKED) {
531531
FREE_AND_NULL(request->url);
532532
}
533533

0 commit comments

Comments
 (0)