aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/lib525.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/libtest/lib525.c b/tests/libtest/lib525.c
index 3726bf6dd..9946ce354 100644
--- a/tests/libtest/lib525.c
+++ b/tests/libtest/lib525.c
@@ -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);