mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 22:18:00 -05:00
tool_paramhlp: fixed potentially uninitialized strtol() variable
Seems highly unlikely to actually be possible, but better safe than sorry. Closes #5417
This commit is contained in:
parent
c4df1f75ad
commit
c5f0a9db22
@ -181,6 +181,7 @@ ParameterError str2num(long *val, const char *str)
|
|||||||
{
|
{
|
||||||
if(str) {
|
if(str) {
|
||||||
char *endptr;
|
char *endptr;
|
||||||
|
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