-f could try to parse empty string... #124

This commit is contained in:
Costa Vitor 2009-06-08 20:23:55 -05:00
parent 9b7d2b1cd4
commit 2689d69e92

View File

@ -382,7 +382,7 @@ parse_yap_arguments(int argc, char *argv[], YAP_init_args *iap)
break;
#endif /* EMACS */
case 'f':
if (argc && argv[1][0] != '-') {
if (argc > 1 && argv[1][0] != '-') {
argc--;
argv++;
if (!strcmp(*argv,"none")) {