From a065765cd3529d17ba687954d8f4deacd8319247 Mon Sep 17 00:00:00 2001 From: Alex Cherepanov Date: Fri, 6 May 2011 08:57:07 -0400 Subject: Add a missing check of the return value from runarg(). Bug 692189. --- gs/psi/imainarg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gs/psi/imainarg.c') 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 */ -- cgit v1.2.3