[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 324/411: altsvc: minimize variable scope and avoid "DEAD_STORE"
From: |
gnunet |
Subject: |
[gnurl] 324/411: altsvc: minimize variable scope and avoid "DEAD_STORE" |
Date: |
Wed, 13 Jan 2021 01:22:19 +0100 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 5d903ce3a3443f6566c33ca43057860270142224
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Sat Nov 7 14:17:53 2020 +0100
altsvc: minimize variable scope and avoid "DEAD_STORE"
Closes #6182
---
lib/altsvc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/altsvc.c b/lib/altsvc.c
index 6a2a5f57b..4ab77fdfc 100644
--- a/lib/altsvc.c
+++ b/lib/altsvc.c
@@ -451,7 +451,6 @@ CURLcode Curl_altsvc_parse(struct Curl_easy *data,
{
const char *p = value;
size_t len;
- enum alpnid dstalpnid = srcalpnid; /* the same by default */
char namebuf[MAX_ALTSVC_HOSTLEN] = "";
char alpnbuf[MAX_ALTSVC_ALPNLEN] = "";
struct altsvc *as;
@@ -478,7 +477,7 @@ CURLcode Curl_altsvc_parse(struct Curl_easy *data,
do {
if(*p == '=') {
/* [protocol]="[host][:port]" */
- dstalpnid = alpn2alpnid(alpnbuf);
+ enum alpnid dstalpnid = alpn2alpnid(alpnbuf); /* the same by default */
p++;
if(*p == '\"') {
const char *dsthost = "";
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnurl] 308/411: KNOWN_BUGS: LDAPS with NSS is slow, (continued)
- [gnurl] 308/411: KNOWN_BUGS: LDAPS with NSS is slow, gnunet, 2021/01/12
- [gnurl] 299/411: hsts: add support for Strict-Transport-Security, gnunet, 2021/01/12
- [gnurl] 300/411: hsts: add read/write callbacks, gnunet, 2021/01/12
- [gnurl] 320/411: url: make sure an HSTS upgrade updates URL and scheme correctly, gnunet, 2021/01/12
- [gnurl] 369/411: examples: update .gitignore, gnunet, 2021/01/12
- [gnurl] 328/411: examples/httpput: remove use of CURLOPT_PUT, gnunet, 2021/01/12
- [gnurl] 325/411: configure: pass -pthread to Libs.private for pkg-config, gnunet, 2021/01/12
- [gnurl] 301/411: curlver: bumped to 7.74.0, gnunet, 2021/01/12
- [gnurl] 332/411: mqttd: fclose test file when done, gnunet, 2021/01/12
- [gnurl] 309/411: KNOWN_BUGS: SMB tests fail with Python 2, gnunet, 2021/01/12
- [gnurl] 324/411: altsvc: minimize variable scope and avoid "DEAD_STORE",
gnunet <=
- [gnurl] 282/411: libssh2: fix transport over HTTPS proxy, gnunet, 2021/01/12
- [gnurl] 363/411: KNOWN_BUGS: curl with wolfSSL lacks support for renegotiation, gnunet, 2021/01/12
- [gnurl] 335/411: http_proxy: use enum with state names for 'keepon', gnunet, 2021/01/12
- [gnurl] 298/411: CI/tests: enable test target on TravisCI for CMake builds, gnunet, 2021/01/12
- [gnurl] 358/411: CI/cirrus: simplify logic for disabled tests, gnunet, 2021/01/12
- [gnurl] 370/411: docs/INTERNALS: remove reference to Curl_sendf(), gnunet, 2021/01/12
- [gnurl] 336/411: cmake: don't pass -fvisibility=hidden to clang-cl on Windows, gnunet, 2021/01/12
- [gnurl] 338/411: httpput-postfields.c: new example doing PUT with POSTFIELDS, gnunet, 2021/01/12
- [gnurl] 276/411: CI/github: work-around for brew breakage on macOS, gnunet, 2021/01/12
- [gnurl] 303/411: RELEASE-NOTES: synced, gnunet, 2021/01/12