From a87c116174ef574465ab12493ef6d0c575bda60d Mon Sep 17 00:00:00 2001 From: Chris Liddell Date: Thu, 28 Mar 2019 09:21:37 +0000 Subject: 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. --- psi/dxmainc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'psi/dxmainc.c') 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 */ -- cgit v1.2.1