gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]