-f could try to parse empty string... #124
This commit is contained in:
parent
9b7d2b1cd4
commit
2689d69e92
@ -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")) {
|
||||
|
Reference in New Issue
Block a user