-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;
|
break;
|
||||||
#endif /* EMACS */
|
#endif /* EMACS */
|
||||||
case 'f':
|
case 'f':
|
||||||
if (argc && argv[1][0] != '-') {
|
if (argc > 1 && argv[1][0] != '-') {
|
||||||
argc--;
|
argc--;
|
||||||
argv++;
|
argv++;
|
||||||
if (!strcmp(*argv,"none")) {
|
if (!strcmp(*argv,"none")) {
|
||||||
|
Reference in New Issue
Block a user