From c5f0a9db22e7bfd27cb71ecc5e918682ed3ed663 Mon Sep 17 00:00:00 2001 From: Siva Sivaraman Date: Mon, 18 May 2020 08:59:58 -0700 Subject: tool_paramhlp: fixed potentially uninitialized strtol() variable Seems highly unlikely to actually be possible, but better safe than sorry. Closes #5417 --- src/tool_paramhlp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index 67702ebe2..1fe364075 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); -- cgit v1.2.3