summaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2018-04-09 15:53:12 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2018-04-09 15:54:52 +0200
commit0f31647cf7c0a9573f2bd18680099206c9e6daf7 (patch)
treef59531ef1dc341dd2abf7c4fda0b41999854eb13 /lib/http.c
parent75f517f9686620f51c9d5537563a8bd84308b906 (diff)
downloadcurl-0f31647cf7c0a9573f2bd18680099206c9e6daf7.tar.gz
lib: silence null-dereference warnings
In debug mode, MingGW-w64's GCC 7.3 issues null-dereference warnings when dereferencing pointers after DEBUGASSERT-ing that they are not NULL. Fix this by removing the DEBUGASSERTs. Suggested-by: Daniel Stenberg Ref: https://github.com/curl/curl/pull/2463
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index 674e49665..ec709ff8d 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -214,8 +214,6 @@ char *Curl_copy_header_value(const char *header)
char *value;
size_t len;
- DEBUGASSERT(header);
-
/* Find the end of the header name */
while(*header && (*header != ':'))
++header;