aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tool_paramhlp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c
index 1fe364075..c375bcc82 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);