summaryrefslogtreecommitdiff
path: root/psi
diff options
context:
space:
mode:
authorIgor Melichev <igor.melichev@artifex.com>2006-10-17 08:33:13 +0000
committerIgor Melichev <igor.melichev@artifex.com>2006-10-17 08:33:13 +0000
commit68d23abdf599074d8339a980de3dbe5a90c71d42 (patch)
treea924f4cbc3ee0b774aa4fd4567cb3402b33ba895 /psi
parent4d13c7cfc40ce8de1cc6d04cd468fa2b1d690b3a (diff)
Fix (psi) : Erly initialize the pointer to the interpreter instance.
DETAILS : The old code crashes after gs/lib/gs_init failed. See comment in code for details. EXPECTED DIFFERENCES : None. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2638 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'psi')
-rwxr-xr-xpsi/psitop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/psi/psitop.c b/psi/psitop.c
index 4ccfdff77..caec4c841 100755
--- a/psi/psitop.c
+++ b/psi/psitop.c
@@ -160,6 +160,9 @@ ps_impl_allocate_interp_instance(
if (!psi) {
return gs_error_VMerror;
}
+ /* Initialize for pl_main_universe_dnit/pl_deallocate_interp_instance
+ in case of gs_main_init_with_args returns with error code. */
+ psi->pl.interp = interp;
/* Setup pointer to mem used by PostScript */
psi->plmemory = mem;
psi->minst = gs_main_alloc_instance(mem);