diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index 1fe3640757..c375bcc824 100644 --- a/src/tool_paramhlp.c +++ b/src/tool_paramhlp.c @@ -180,8 +180,7 @@ void cleanarg(char *str) ParameterError str2num(long *val, const char *str) { if(str) { - char *endptr; - endptr = (void*)0; + char *endptr = NULL; long num; errno = 0; num = strtol(str, &endptr, 10);