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
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 @@
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);
}