Unverified Commit 454dae00 authored by Benbuck Nason's avatar Benbuck Nason Committed by Daniel Stenberg
Browse files

strtoofft: Remove extraneous null check

Fixes #1950: curlx_strtoofft() doesn't fully protect against null 'str'
argument.

Closes #1952
parent 2dcc3783
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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)