summaryrefslogtreecommitdiff
path: root/Utilities/cmcurl/lib/strtoofft.c
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmcurl/lib/strtoofft.c')
-rw-r--r--Utilities/cmcurl/lib/strtoofft.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Utilities/cmcurl/lib/strtoofft.c b/Utilities/cmcurl/lib/strtoofft.c
index 807fc5454..363647737 100644
--- a/Utilities/cmcurl/lib/strtoofft.c
+++ b/Utilities/cmcurl/lib/strtoofft.c
@@ -219,7 +219,10 @@ CURLofft curlx_strtoofft(const char *str, char **endp, int base,
curl_off_t number;
errno = 0;
*num = 0; /* clear by default */
- while(str && *str && ISSPACE(*str))
+
+ DEBUGASSERT(str);
+
+ while(*str && ISSPACE(*str))
str++;
if('-' == *str) {
if(endp)