mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -05:00
parent
c5f0a9db22
commit
33d60d09f3
@ -180,8 +180,7 @@ void cleanarg(char *str)
|
|||||||
ParameterError str2num(long *val, const char *str)
|
ParameterError str2num(long *val, const char *str)
|
||||||
{
|
{
|
||||||
if(str) {
|
if(str) {
|
||||||
char *endptr;
|
char *endptr = NULL;
|
||||||
endptr = (void*)0;
|
|
||||||
long num;
|
long num;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
num = strtol(str, &endptr, 10);
|
num = strtol(str, &endptr, 10);
|
||||||
|
Loading…
Reference in New Issue
Block a user