Unverified Commit 0f31647c authored by Marcel Raad's avatar Marcel Raad
Browse files

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
parent 75f517f9
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
+0 −2
Original line number Diff line number Diff line
@@ -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) {