From: Siva Sivaraman Date: Mon, 18 May 2020 15:59:58 +0000 (-0700) Subject: tool_paramhlp: fixed potentially uninitialized strtol() variable X-Git-Tag: curl-7_71_0~123 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5f0a9db22;p=thirdparty%2Fcurl.git tool_paramhlp: fixed potentially uninitialized strtol() variable Seems highly unlikely to actually be possible, but better safe than sorry. Closes #5417 --- diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index 67702ebe2e..1fe3640757 100644 --- a/src/tool_paramhlp.c +++ b/src/tool_paramhlp.c @@ -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);