1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 17:18:48 -05:00

tool_paramhlp: fixup C89 mistake

Follow-up to c5f0a9db22.
This commit is contained in:
Daniel Stenberg 2020-05-19 08:58:09 +02:00
parent c5f0a9db22
commit 33d60d09f3
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -180,8 +180,7 @@ void cleanarg(char *str)
ParameterError str2num(long *val, const char *str) ParameterError str2num(long *val, const char *str)
{ {
if(str) { if(str) {
char *endptr; char *endptr = NULL;
endptr = (void*)0;
long num; long num;
errno = 0; errno = 0;
num = strtol(str, &endptr, 10); num = strtol(str, &endptr, 10);