mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05: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
50183bf5d8
commit
0c9d2c5a6f
@ -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…
x
Reference in New Issue
Block a user