1
0
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:
Laurent MONIN 2006-01-03 13:33:11 +01:00 committed by Laurent MONIN
parent 50183bf5d8
commit 0c9d2c5a6f

View File

@ -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;