diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-02-14 11:50:12 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-02-14 11:52:15 +0100 |
commit | 742c555aa010bb11ab41fff40fb9e8a290153998 (patch) | |
tree | 4ad93071dcec75b1ca2e3525564b6a5031fe8934 | |
parent | a2f52bc2a0aa32c951dc05993cae513d65b1669e (diff) | |
download | curl-742c555aa010bb11ab41fff40fb9e8a290153998.tar.gz |
examples/httpcustomheader: Value stored to 'res' is never read
Detected by scan-build
-rw-r--r-- | docs/examples/httpcustomheader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/httpcustomheader.c b/docs/examples/httpcustomheader.c index d22b7bc5d..6712f8c66 100644 --- a/docs/examples/httpcustomheader.c +++ b/docs/examples/httpcustomheader.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -49,7 +49,7 @@ int main(void) chunk = curl_slist_append(chunk, "X-silly-header;"); /* set our custom set of headers */ - res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); + curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); curl_easy_setopt(curl, CURLOPT_URL, "localhost"); curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); |