diff options
-rw-r--r-- | base/gsargs.c | 2 | ||||
-rw-r--r-- | psi/imainarg.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/base/gsargs.c b/base/gsargs.c index 267aeeb13..c1c1869be 100644 --- a/base/gsargs.c +++ b/base/gsargs.c @@ -348,7 +348,7 @@ arg_next(arg_list * pal, const char **argstr, const gs_memory_t *errmem) *argstr = NULL; /* Empty the argument string so we don't return it. */ continue; /* Loop back to parse the first arg from the file. */ } - } while (pal->depth >= 0 && *argstr != NULL && **argstr == 0); /* Until we get a non-empty arg */ + } while (**argstr == 0); /* Until we get a non-empty arg */ return 1; } diff --git a/psi/imainarg.c b/psi/imainarg.c index 76ede0c71..869a7aad4 100644 --- a/psi/imainarg.c +++ b/psi/imainarg.c @@ -693,8 +693,6 @@ run_stdin: return code; } else adef = arg; - if (adef == NULL) - return_error(gs_error_invalidfileaccess); if ((code = gs_main_init1(minst)) < 0) return code; ialloc_set_space(idmemory, avm_system); |