summaryrefslogtreecommitdiff
path: root/lib/rtsp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-03-26 14:25:45 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-03-26 23:19:20 +0100
commit95cbcec8f986492766c4be3922af1e7644e1e7c5 (patch)
tree8ab1d4ad09d8bc078a96a18032be464c41e3bb1e /lib/rtsp.c
parentd003b0213a08678264db5c987a0556a2a6785438 (diff)
downloadcurl-95cbcec8f986492766c4be3922af1e7644e1e7c5.tar.gz
urldata: merge "struct DynamicStatic" into "struct UrlState"
Both were used for the same purposes and there was no logical separation between them. Combined, this also saves 16 bytes in less holes in my test build. Closes #6798
Diffstat (limited to 'lib/rtsp.c')
-rw-r--r--lib/rtsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rtsp.c b/lib/rtsp.c
index 55766757a..3029ff526 100644
--- a/lib/rtsp.c
+++ b/lib/rtsp.c
@@ -404,8 +404,8 @@ static CURLcode rtsp_do(struct Curl_easy *data, bool *done)
/* Referrer */
Curl_safefree(data->state.aptr.ref);
- if(data->change.referer && !Curl_checkheaders(data, "Referer"))
- data->state.aptr.ref = aprintf("Referer: %s\r\n", data->change.referer);
+ if(data->state.referer && !Curl_checkheaders(data, "Referer"))
+ data->state.aptr.ref = aprintf("Referer: %s\r\n", data->state.referer);
else
data->state.aptr.ref = NULL;