1
0
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:
Laurent MONIN 2006-01-03 13:33:11 +01:00 committed by Jonas Fonseca
parent 9c2c6c782e
commit 43d47ade42

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;