diff options
author | Alex Cherepanov <alex.cherepanov@artifex.com> | 2011-05-06 08:57:07 -0400 |
---|---|---|
committer | Alex Cherepanov <alex.cherepanov@artifex.com> | 2011-05-06 08:57:07 -0400 |
commit | a065765cd3529d17ba687954d8f4deacd8319247 (patch) | |
tree | 0bf551dd5141f5be455a1dd8403284af7fb0d88d /gs/psi/imainarg.c | |
parent | 2822d8a9f4186aa14f3913258841b74ff87309cf (diff) |
Add a missing check of the return value from runarg(). Bug 692189.
Diffstat (limited to 'gs/psi/imainarg.c')
-rw-r--r-- | gs/psi/imainarg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gs/psi/imainarg.c b/gs/psi/imainarg.c index 17fdadb9f..7628ce64c 100644 --- a/gs/psi/imainarg.c +++ b/gs/psi/imainarg.c @@ -316,7 +316,9 @@ run_stdin: } if (code < 0) return e_Fatal; - runarg(minst, "]put", psarg, ".runfile", runInit | runFlush); + code = runarg(minst, "]put", psarg, ".runfile", runInit | runFlush); + if (code < 0) + return code; return e_Quit; } case 'A': /* trace allocator */ |