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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Utilities/cmcurl/lib/strtoofft.c b/Utilities/cmcurl/lib/strtoofft.c
index 30deb8c05b..fb8d92196f 100644
--- a/Utilities/cmcurl/lib/strtoofft.c
+++ b/Utilities/cmcurl/lib/strtoofft.c
@@ -221,6 +221,7 @@ CURLofft curlx_strtoofft(const char *str, char **endp, int base,
curl_off_t number;
errno = 0;
*num = 0; /* clear by default */
+ DEBUGASSERT(base); /* starting now, avoid base zero */
while(*str && ISBLANK(*str))
str++;