diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2019-03-28 09:21:37 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2019-03-28 09:44:57 +0000 |
commit | a87c116174ef574465ab12493ef6d0c575bda60d (patch) | |
tree | 12555fec37ccc60a167dcbc6235511e0f813f6b5 /psi/dwmainc.c | |
parent | 9723b898561c3cd7b9f207c9976994671940df56 (diff) | |
download | ghostpdl-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/dwmainc.c')
-rw-r--r-- | psi/dwmainc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psi/dwmainc.c b/psi/dwmainc.c index a894fc218..9e7558fb4 100644 --- a/psi/dwmainc.c +++ b/psi/dwmainc.c @@ -40,7 +40,7 @@ #endif GSDLL gsdll; -void *instance; +void *instance = NULL; #ifndef METRO BOOL quitnow = FALSE; HANDLE hthread; |