mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 09:08:49 -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) {
|
||||
char *endptr;
|
||||
endptr = (void*)0;
|
||||
long num;
|
||||
errno = 0;
|
||||
num = strtol(str, &endptr, 10);
|
||||
|
Loading…
Reference in New Issue
Block a user