summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-05-19 08:58:09 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-05-19 08:58:33 +0200
commit33d60d09f3f00ebf4df8d0d89d8afbff85ea5605 (patch)
tree78fbd26da243db20be852487ebd53eb566c0d33f /src
parentc5f0a9db22e7bfd27cb71ecc5e918682ed3ed663 (diff)
downloadcurl-33d60d09f3f00ebf4df8d0d89d8afbff85ea5605.tar.gz
tool_paramhlp: fixup C89 mistake
Follow-up to c5f0a9db22.
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);