diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-04-09 15:53:12 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-04-09 15:54:52 +0200 |
commit | 0f31647cf7c0a9573f2bd18680099206c9e6daf7 (patch) | |
tree | f59531ef1dc341dd2abf7c4fda0b41999854eb13 /lib/strtoofft.c | |
parent | 75f517f9686620f51c9d5537563a8bd84308b906 (diff) | |
download | curl-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/strtoofft.c')
-rw-r--r-- | lib/strtoofft.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/strtoofft.c b/lib/strtoofft.c index 363647737..546a3ff75 100644 --- a/lib/strtoofft.c +++ b/lib/strtoofft.c @@ -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) { |