summaryrefslogtreecommitdiff
path: root/psi/dxmainc.c
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2019-03-28 09:21:37 +0000
committerChris Liddell <chris.liddell@artifex.com>2019-03-28 09:44:57 +0000
commita87c116174ef574465ab12493ef6d0c575bda60d (patch)
tree12555fec37ccc60a167dcbc6235511e0f813f6b5 /psi/dxmainc.c
parent9723b898561c3cd7b9f207c9976994671940df56 (diff)
downloadghostpdl-a87c116174ef574465ab12493ef6d0c575bda60d.tar.gz
Fix sefault with 'so' build.
The loaders were passing an unitialise pointer into gsapi_new_instance() meaning we might try to dereference the pointer to get to the shared portion of the library context. Initialise the pointer to NULL. Apply the same fix to everywhere that uses gsapi_new_instance.
Diffstat (limited to 'psi/dxmainc.c')
-rw-r--r--psi/dxmainc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psi/dxmainc.c b/psi/dxmainc.c
index 8b4fee94e..c95c08ca7 100644
--- a/psi/dxmainc.c
+++ b/psi/dxmainc.c
@@ -77,7 +77,7 @@ int main(int argc, char *argv[])
{
int exit_status;
int code = 1, code1;
- void *instance;
+ void *instance = NULL;
int exit_code;
/* run Ghostscript */