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:
Siva Sivaraman 2020-05-18 08:59:58 -07:00 committed by Daniel Stenberg
parent c4df1f75ad
commit c5f0a9db22
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 0 deletions

View File

@ -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);