]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_paramhlp: fixup C89 mistake
authorDaniel Stenberg <daniel@haxx.se>
Tue, 19 May 2020 06:58:09 +0000 (08:58 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 19 May 2020 06:58:33 +0000 (08:58 +0200)
Follow-up to c5f0a9db22.

src/tool_paramhlp.c

index 1fe364075740d020c196ec5f353128401f049733..c375bcc8249e49484389e962320f7382d2637af7 100644 (file)
@@ -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);