mirror of
https://github.com/curl/curl.git
synced 2026-07-24 01:07:18 +03:00
Print usage in case 'arg2 == NULL'.
This commit is contained in:
parent
f1ba12607a
commit
145084b699
1 changed files with 5 additions and 0 deletions
|
|
@ -25,6 +25,11 @@ int test(char *URL)
|
|||
char done=FALSE;
|
||||
CURLM *m;
|
||||
|
||||
if (!arg2) {
|
||||
fprintf(stderr, "Usage: lib525 [url] [uploadfile]\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* get the file size of the local file */
|
||||
hd = open(arg2, O_RDONLY) ;
|
||||
fstat(hd, &file_info);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue