mirror of
https://github.com/rkd77/elinks.git
synced 2024-08-22 21:14:32 -04:00
Let ftp-parser displays usage information when called with no arg or
empty string, instead of core dump in debug mode.
This commit is contained in:
parent
9c2c6c782e
commit
43d47ade42
@ -62,6 +62,9 @@ main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if (!responselen)
|
||||
die("Usage: %s --response \"string\"", argv[0]);
|
||||
|
||||
if (parse_ftp_file_info(&ftp_info, response, responselen))
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user