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
This commit is contained in:
Marcel Raad 2018-04-09 15:53:12 +02:00
parent 75f517f968
commit 0f31647cf7
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02
2 changed files with 0 additions and 4 deletions

View File

@ -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;

View File

@ -220,8 +220,6 @@ CURLofft curlx_strtoofft(const char *str, char **endp, int base,
errno = 0;
*num = 0; /* clear by default */
DEBUGASSERT(str);
while(*str && ISSPACE(*str))
str++;
if('-' == *str) {